/*!
 * dxeq UI enhancement layer - depth, hover motion and click feedback.
 * Injected last by runtime/ui_enhance_apply.py. It only adds transitions,
 * shadows and effects; it never changes document flow or positioning.
 */
:root {
  --dxeq-accent: #5651d8;
  --dxeq-accent-soft: rgba(86, 81, 216, .12);
  --dxeq-ink: #1f264a;
  --dxeq-ease: cubic-bezier(.22, .61, .36, 1);
  --dxeq-fast: 160ms;
  --dxeq-mid: 280ms;
  --dxeq-slow: 420ms;
  --dxeq-shadow: 0 6px 20px rgba(31, 38, 74, .10);
  --dxeq-shadow-hover: 0 14px 34px rgba(31, 38, 74, .18);
}

/* ---------- base polish ---------- */
html.dxeq-ui body { -webkit-font-smoothing: antialiased; }
html.dxeq-ui ::selection { background: rgba(86, 81, 216, .20); color: var(--dxeq-ink); }
html.dxeq-ui * { scrollbar-width: thin; scrollbar-color: rgba(88, 94, 132, .35) transparent; }
html.dxeq-ui ::-webkit-scrollbar { width: 9px; height: 9px; }
html.dxeq-ui ::-webkit-scrollbar-track { background: transparent; }
html.dxeq-ui ::-webkit-scrollbar-thumb {
  background: rgba(88, 94, 132, .30);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 9px;
  transition: background var(--dxeq-fast) var(--dxeq-ease);
}
html.dxeq-ui ::-webkit-scrollbar-thumb:hover { background: var(--dxeq-accent); background-clip: padding-box; }
html.dxeq-ui :focus-visible { outline: 2px solid var(--dxeq-accent); outline-offset: 2px; }

html.dxeq-ui .layui-btn,
html.dxeq-ui .layui-input,
html.dxeq-ui .layui-select,
html.dxeq-ui .layui-textarea,
html.dxeq-ui input[type=text],
html.dxeq-ui input[type=password] { border-radius: 6px; }

html.dxeq-ui .layui-input:focus,
html.dxeq-ui .layui-textarea:focus,
html.dxeq-ui input[type=text]:focus,
html.dxeq-ui input[type=password]:focus {
  border-color: var(--dxeq-accent) !important;
  box-shadow: 0 0 0 3px var(--dxeq-accent-soft);
  transition: border-color var(--dxeq-fast) var(--dxeq-ease), box-shadow var(--dxeq-fast) var(--dxeq-ease);
}

/* ---------- header / sidebar ---------- */
html.dxeq-ui .layui-header { box-shadow: 0 2px 14px rgba(31, 38, 74, .10); }
html.dxeq-ui .layui-logo .logo-box img {
  transition: transform var(--dxeq-mid) var(--dxeq-ease), filter var(--dxeq-mid) var(--dxeq-ease);
}
html.dxeq-ui .layui-logo:hover .logo-box img {
  transform: scale(1.05);
  filter: drop-shadow(0 3px 8px rgba(86, 81, 216, .35));
}

html.dxeq-ui .layui-nav .layui-nav-item > a {
  position: relative;
  transition: background-color var(--dxeq-fast) var(--dxeq-ease),
              color var(--dxeq-fast) var(--dxeq-ease),
              transform var(--dxeq-fast) var(--dxeq-ease);
}
html.dxeq-ui .layui-nav-tree .layui-nav-item > a::before {
  content: "";
  position: absolute;
  left: 0; top: 20%; width: 3px; height: 60%;
  border-radius: 0 3px 3px 0;
  background: var(--dxeq-accent);
  opacity: 0;
  transform: scaleY(.3);
  transition: opacity var(--dxeq-mid) var(--dxeq-ease), transform var(--dxeq-mid) var(--dxeq-ease);
}
html.dxeq-ui .layui-nav-tree .layui-nav-item:hover > a::before,
html.dxeq-ui .layui-nav-tree .layui-this > a::before { opacity: 1; transform: scaleY(1); }
html.dxeq-ui .layui-nav-tree .layui-nav-item:hover > a { transform: translateX(3px); }

html.dxeq-ui .layui-nav-child dd > a {
  transition: background-color var(--dxeq-fast) var(--dxeq-ease),
              padding-left var(--dxeq-mid) var(--dxeq-ease),
              color var(--dxeq-fast) var(--dxeq-ease);
}
html.dxeq-ui .layui-nav-child dd > a:hover { padding-left: 26px; }
html.dxeq-ui .layui-nav-child { animation: dxeq-drop-in 220ms var(--dxeq-ease) both; }

/* ---------- buttons ---------- */
html.dxeq-ui .layui-btn,
html.dxeq-ui button,
html.dxeq-ui .poster-btn {
  position: relative;
  transition: transform var(--dxeq-fast) var(--dxeq-ease),
              box-shadow var(--dxeq-mid) var(--dxeq-ease),
              background-color var(--dxeq-fast) var(--dxeq-ease),
              color var(--dxeq-fast) var(--dxeq-ease),
              border-color var(--dxeq-fast) var(--dxeq-ease),
              filter var(--dxeq-fast) var(--dxeq-ease);
}
html.dxeq-ui .layui-btn:hover,
html.dxeq-ui button.dxeq-glow:hover {
  transform: translateY(-2px);
  box-shadow: var(--dxeq-shadow);
  filter: brightness(1.04);
}
html.dxeq-ui .layui-btn:active,
html.dxeq-ui .dxeq-pressed {
  transform: translateY(0) scale(.97);
  box-shadow: 0 2px 8px rgba(31, 38, 74, .12);
}

/* ---------- cards / panels / tables / tabs ---------- */
html.dxeq-ui .layui-card,
html.dxeq-ui .layui-panel,
html.dxeq-ui .dxeq-settings-section {
  border-radius: 10px;
  transition: transform var(--dxeq-mid) var(--dxeq-ease),
              box-shadow var(--dxeq-mid) var(--dxeq-ease),
              border-color var(--dxeq-mid) var(--dxeq-ease);
}
html.dxeq-ui .layui-card:hover,
html.dxeq-ui .layui-panel:hover,
html.dxeq-ui .dxeq-settings-section:hover {
  transform: translateY(-3px);
  box-shadow: var(--dxeq-shadow-hover);
}
html.dxeq-ui .layui-table tbody tr { transition: background-color var(--dxeq-fast) var(--dxeq-ease); }
html.dxeq-ui .layui-table tbody tr:hover { background-color: rgba(86, 81, 216, .06) !important; }
html.dxeq-ui .layui-tab-title li {
  position: relative;
  transition: color var(--dxeq-fast) var(--dxeq-ease), background-color var(--dxeq-fast) var(--dxeq-ease);
}
html.dxeq-ui .layui-tab-title li:hover { background-color: var(--dxeq-accent-soft); border-radius: 4px 4px 0 0; }

/* ---------- pointer-follow glow ---------- */
html.dxeq-ui .dxeq-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--dxeq-mx, 50%) var(--dxeq-my, 50%),
              var(--dxeq-accent-soft), transparent 72%);
  opacity: 0;
  transition: opacity var(--dxeq-mid) var(--dxeq-ease);
}
html.dxeq-ui .dxeq-glow:hover::before { opacity: 1; }

/* ---------- click ripple ---------- */
html.dxeq-ui .dxeq-ripple-host { overflow: hidden; }
html.dxeq-ui .dxeq-ripple {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  opacity: .85;
  background: radial-gradient(circle,
              var(--dxeq-ripple-color, rgba(255, 255, 255, .55)) 0%,
              rgba(255, 255, 255, 0) 70%);
  animation: dxeq-ripple 620ms var(--dxeq-ease) forwards;
}
html.dxeq-ui .dxeq-ripple.is-dark { --dxeq-ripple-color: rgba(86, 81, 216, .30); }

/* ---------- entrance ---------- */
html.dxeq-ui .layui-layout-admin .layui-body {
  animation: dxeq-fade-up var(--dxeq-slow) var(--dxeq-ease) both;
}

@keyframes dxeq-ripple { to { transform: scale(1); opacity: 0; } }
@keyframes dxeq-drop-in {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes dxeq-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- void elements (<input class="layui-btn">) ----------
   Void elements cannot host pseudo-elements or child nodes, so their click
   ripple is drawn with an animated background instead. */
html.dxeq-ui input.layui-btn { background-repeat: no-repeat; }
html.dxeq-ui input.layui-btn.dxeq-void-ripple {
  animation: dxeq-void-ripple 620ms var(--dxeq-ease) forwards;
}
@keyframes dxeq-void-ripple {
  from {
    background-image: radial-gradient(circle at var(--dxeq-mx, 50%) var(--dxeq-my, 50%),
                      rgba(255, 255, 255, .55), transparent 62%);
    background-size: 0% 0%;
  }
  to {
    background-image: radial-gradient(circle at var(--dxeq-mx, 50%) var(--dxeq-my, 50%),
                      rgba(255, 255, 255, 0), transparent 62%);
    background-size: 320% 320%;
  }
}

/* ---------- login page: slow drifting background photo ----------
   The login page paints a single full-screen <img class="login-bg-img">. A very
   slow Ken Burns loop keeps the picture alive without touching the layout: the
   image is already full-bleed and the slight scale-up never exposes an edge. */
html.dxeq-ui body.login-bg .login-bg-img {
  transform-origin: 58% 42%;
  will-change: transform;
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  html.dxeq-ui body.login-bg .login-bg-img {
    animation: dxeq-bg-drift 46s ease-in-out infinite alternate;
  }
}
@keyframes dxeq-bg-drift {
  0%   { transform: scale(1.03) translate3d(0, 0, 0); }
  35%  { transform: scale(1.10) translate3d(-1.8%, -1.2%, 0); }
  70%  { transform: scale(1.06) translate3d(1.5%, 1.3%, 0); }
  100% { transform: scale(1.12) translate3d(.7%, -1.7%, 0); }
}

/* Same drift for the H5 / WeChat login page. On desktop widths that image is
   centred with translateX(-50%), so its keyframes have to keep that offset. */
html.dxeq-ui img.bg-login {
  transform-origin: 50% 40%;
  will-change: transform;
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  html.dxeq-ui img.bg-login { animation: dxeq-bg-drift 46s ease-in-out infinite alternate; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
  html.dxeq-ui img.bg-login { animation-name: dxeq-bg-drift-center; }
}
@keyframes dxeq-bg-drift-center {
  0%   { transform: translateX(-50%) scale(1.03); }
  35%  { transform: translateX(-50%) scale(1.10) translate3d(-1.2%, -1.2%, 0); }
  70%  { transform: translateX(-50%) scale(1.06) translate3d(1.2%, 1.2%, 0); }
  100% { transform: translateX(-50%) scale(1.12) translate3d(.5%, -1.2%, 0); }
}

/* ---------- global waiting overlay ----------
   Raised by query/form navigation and by AJAX calls that carry no loader of
   their own (see ui-enhance.js). Hidden state must never eat clicks. */
html.dxeq-ui .dxeq-wait {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 18, 42, .45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--dxeq-ease), visibility 0s linear 200ms;
}
html.dxeq-ui .dxeq-wait.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: progress;
  transition: opacity 160ms var(--dxeq-ease), visibility 0s;
}
/* parked inside a tab panel: only that panel is veiled, menu stays usable */
html.dxeq-ui .dxeq-scope { position: relative; }
html.dxeq-ui .dxeq-wait.is-scoped {
  position: absolute;
  z-index: 19891000;
  border-radius: inherit;
}
html.dxeq-ui .dxeq-wait-card {
  min-width: 196px;
  max-width: 76vw;
  padding: 22px 26px 18px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 46px rgba(10, 18, 50, .30);
  transform: translateY(8px) scale(.97);
  transition: transform 220ms var(--dxeq-ease);
}
html.dxeq-ui .dxeq-wait.is-on .dxeq-wait-card { transform: none; }
html.dxeq-ui .dxeq-spinner {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(86, 81, 216, .18);
  border-top-color: var(--dxeq-accent);
  animation: dxeq-spin .78s linear infinite;
}
html.dxeq-ui .dxeq-wait-text {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: .5px;
  color: var(--dxeq-ink);
}
html.dxeq-ui .dxeq-wait-bar {
  display: block;
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(86, 81, 216, .14);
}
html.dxeq-ui .dxeq-wait-bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(86, 81, 216, 0), var(--dxeq-accent), rgba(86, 81, 216, 0));
  animation: dxeq-wait-slide 1.15s ease-in-out infinite;
}
/* While the overlay owns the screen, hide layui's own spinner/shade so the two
   indicators never stack on top of each other. */
html.dxeq-ui.dxeq-waiting .layui-layer-loading,
html.dxeq-ui.dxeq-waiting .layui-layer-loading .layui-layer-content,
html.dxeq-ui.dxeq-waiting .layui-layer-shade { opacity: 0 !important; }

@keyframes dxeq-spin { to { transform: rotate(360deg); } }
@keyframes dxeq-wait-slide {
  from { transform: translateX(-115%); }
  to   { transform: translateX(275%); }
}

/* ---------- dynatree (department tree) node icons ----------
   skin-vista only ships a folder sprite for nodes that have children; leaf
   nodes fall back to the blank sprite cell and render as an empty square.
   Every node is drawn with the RemixIcon font the rest of the UI already
   uses, so folders and leaves share one style. */
html.dxeq-ui .dynatree-node span.dynatree-icon {
  background-image: none !important;
  font-family: 'remixicon' !important;
  font-style: normal;
  font-size: 15px;
  line-height: 16px;
  height: 16px;
  width: 16px;
  text-align: center;
  color: #8b96b3;
  -webkit-font-smoothing: antialiased;
}
html.dxeq-ui .dynatree-node span.dynatree-icon::before { content: "\ebba"; }        /* ri-community-line */
html.dxeq-ui .dynatree-has-children span.dynatree-icon { color: #eaa600; }
html.dxeq-ui .dynatree-has-children.dynatree-ico-cf span.dynatree-icon::before { content: "\ed53"; } /* ri-folder-3-fill */
html.dxeq-ui .dynatree-has-children.dynatree-ico-ef span.dynatree-icon::before { content: "\ed6f"; } /* ri-folder-open-fill */
/* the active node paints a light-blue background, so the icon must stay dark */
html.dxeq-ui .dynatree-active span.dynatree-icon { color: var(--dxeq-accent); }

/* ---------- animated "no data" state ----------
   Injected by ui-enhance.js wherever a table/placeholder is empty, so a query
   that returns nothing still shows a moving, self-explaining screen instead of
   a bare "无数据" line. */
html.dxeq-ui .dxeq-empty-host { padding: 0 !important; }
html.dxeq-ui .dxeq-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 12px 30px;
  text-align: center;
  animation: dxeq-fade-up 320ms var(--dxeq-ease) both;
}
html.dxeq-ui .dxeq-empty-art {
  position: relative;
  width: 104px;
  height: 70px;
  margin-bottom: 12px;
}
html.dxeq-ui .dxeq-empty-card {
  position: absolute;
  left: 8px;
  top: 10px;
  width: 62px;
  height: 46px;
  box-sizing: border-box;
  padding: 10px 9px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(86, 81, 216, .18);
  box-shadow: 0 8px 18px rgba(31, 38, 74, .10);
  animation: dxeq-empty-bob 3.4s ease-in-out infinite;
}
html.dxeq-ui .dxeq-empty-card b {
  display: block;
  height: 4px;
  margin-bottom: 6px;
  border-radius: 3px;
  background: rgba(86, 81, 216, .16);
}
html.dxeq-ui .dxeq-empty-card b:nth-child(2) { width: 78%; }
html.dxeq-ui .dxeq-empty-card b:nth-child(3) { width: 52%; }
html.dxeq-ui .dxeq-empty-lens {
  position: absolute;
  right: 6px;
  bottom: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--dxeq-accent);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 16px rgba(86, 81, 216, .22);
  animation: dxeq-empty-bob 3.4s ease-in-out infinite .45s;
}
html.dxeq-ui .dxeq-empty-lens::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -7px;
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: var(--dxeq-accent);
  transform: rotate(45deg);
}
html.dxeq-ui .dxeq-empty-text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #6b7391;
  letter-spacing: .5px;
}
html.dxeq-ui .dxeq-empty-hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: #a6adc2;
}
html.dxeq-ui tr[data-dxeq-empty] > td.dxeq-empty-cell {
  padding: 0 !important;
  border: none !important;
  background: transparent;
}
@keyframes dxeq-empty-bob {
  50% { transform: translateY(-5px); }
}

/* ---------- accessibility / touch ---------- */
@media (prefers-reduced-motion: reduce) {
  html.dxeq-ui *, html.dxeq-ui *::before, html.dxeq-ui *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.dxeq-ui .dxeq-glow::before { display: none; }
  /* keep the waiting overlay readable without motion: static ring + full bar */
  html.dxeq-ui .dxeq-wait-card { transform: none !important; }
  html.dxeq-ui .dxeq-wait-bar i {
    width: 100%;
    opacity: .55;
    background: var(--dxeq-accent);
    animation: none !important;
  }
  /* empty state keeps its illustration, just without the bobbing loop */
  html.dxeq-ui .dxeq-empty-card,
  html.dxeq-ui .dxeq-empty-lens { animation: none !important; }
}
@media (hover: none) {
  html.dxeq-ui .dxeq-glow::before { display: none; }
  html.dxeq-ui .layui-card:hover,
  html.dxeq-ui .layui-panel:hover,
  html.dxeq-ui .dxeq-settings-section:hover,
  html.dxeq-ui .layui-nav-tree .layui-nav-item:hover > a { transform: none; }
}
