/**
 * 重庆金兴小学 - 管理端（B 校园清新）主题
 * 只建议在登录页 / 首页容器内引用，避免影响旧 EasyUI 页面交互。
 */
:root{
  --jx-primary:#2F6BFF;
  --jx-success:#19C37D;
  --jx-warn:#FFD666;
  --jx-danger:#FF7875;
  --jx-text:#303133;
  --jx-text-2:#606266;
  --jx-border:#E4E7ED;
  --jx-bg:#F5F7FA;
  --jx-card:#FFFFFF;
  --jx-radius-lg:16px;
  --jx-radius:12px;
  --jx-radius-sm:10px;
  --jx-shadow:0 14px 40px rgba(0,0,0,.14);
  --jx-shadow-soft:0 10px 26px rgba(0,0,0,.08);
}

/* -------- Login page -------- */
.jx-login{
  min-height:100vh;
  background:
    radial-gradient(1000px 520px at 25% 15%, rgba(47,107,255,.22), transparent 60%),
    radial-gradient(900px 520px at 70% 75%, rgba(25,195,125,.18), transparent 60%),
    linear-gradient(135deg, #EAF3FF 0%, #F6FFFB 55%, #F2FBFF 100%);
  position:relative;
  overflow:hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color:var(--jx-text);
}
.jx-login *{ box-sizing:border-box; }

.jx-login__noise{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,0)),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.10), transparent 35%),
    radial-gradient(circle at 70% 75%, rgba(255,255,255,.10), transparent 35%);
  pointer-events:none;
  mix-blend-mode: overlay;
  opacity:.65;
}

.jx-bubbles{
  position:absolute; inset:-80px;
  pointer-events:none;
  opacity:.9;
}
.jx-bubble{
  position:absolute;
  width:80px; height:80px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.85), rgba(255,255,255,.30) 35%, rgba(255,255,255,0) 70%);
  filter: blur(.2px);
  animation: jxFloat 16s ease-in-out infinite;
}
.jx-bubble.--b1{ left:8%; top:18%; width:64px; height:64px; animation-duration:18s; opacity:.55;}
.jx-bubble.--b2{ left:18%; top:68%; width:110px; height:110px; animation-duration:22s; opacity:.50;}
.jx-bubble.--b3{ left:72%; top:16%; width:90px; height:90px; animation-duration:20s; opacity:.45;}
.jx-bubble.--b4{ left:78%; top:70%; width:56px; height:56px; animation-duration:17s; opacity:.50;}
.jx-bubble.--b5{ left:48%; top:40%; width:140px; height:140px; animation-duration:26s; opacity:.35;}

@keyframes jxFloat{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(18px,-14px,0) scale(1.04); }
}

.jx-login__wrap{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 18px;
}

.jx-login__card{
  width:min(980px, 96vw);
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  padding:22px;
  border-radius: var(--jx-radius-lg);
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: var(--jx-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(10px);
  opacity:0;
  animation: jxEnter .24s ease-out forwards;
}
@keyframes jxEnter{ to{ transform: translateY(0); opacity:1; } }

.jx-login__hero{
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(47,107,255,.18) 0%, rgba(25,195,125,.14) 55%, rgba(255,214,102,.10) 100%),
    radial-gradient(680px 280px at 20% 25%, rgba(47,107,255,.22), transparent 60%),
    radial-gradient(560px 240px at 70% 70%, rgba(25,195,125,.18), transparent 60%);
  padding:26px 26px 20px;
  position:relative;
  overflow:hidden;
}
.jx-login__hero::after{
  content:"";
  position:absolute;
  inset:-40px -80px auto -80px;
  height:220px;
  background: radial-gradient(closest-side, rgba(255,255,255,.55), transparent 70%);
  transform: rotate(-12deg);
  opacity:.55;
}
.jx-hero__title{
  position:relative;
  font-size:28px;
  font-weight:800;
  letter-spacing:.08em;
  margin:0 0 8px 0;
}
.jx-hero__sub{
  position:relative;
  margin:0 0 18px 0;
  color:rgba(48,49,51,.78);
  font-weight:600;
}
.jx-hero__pills{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.jx-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.62);
  border:1px solid rgba(255,255,255,.85);
  box-shadow: var(--jx-shadow-soft);
  font-size:12px;
  color:var(--jx-text-2);
}
.jx-dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--jx-primary);
  box-shadow: 0 0 0 3px rgba(47,107,255,.16);
}
.jx-dot.--g{ background: var(--jx-success); box-shadow:0 0 0 3px rgba(25,195,125,.16); }
.jx-dot.--y{ background: var(--jx-warn); box-shadow:0 0 0 3px rgba(255,214,102,.20); }

.jx-login__form{
  border-radius:14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.80);
  padding:22px 22px 18px;
}
.jx-brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.jx-brand__logo{
  width:38px; height:38px;
  border-radius:50%;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 4px 14px rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px;
  box-sizing:border-box;
}
.jx-brand__txt h1{
  font-size:18px; margin:0; font-weight:800;
}
.jx-brand__txt p{
  margin:2px 0 0 0;
  font-size:12px;
  color:var(--jx-text-2);
  font-weight:600;
}
.jx-field{ margin:12px 0; }
.jx-label{ display:block; font-size:12px; color:var(--jx-text-2); margin-bottom:6px; font-weight:700; }
.jx-input{
  width:100%;
  height:42px;
  border-radius: var(--jx-radius-sm);
  border:1px solid var(--jx-border);
  padding:0 12px;
  outline:none;
  background:#fff;
  transition: box-shadow .14s ease, border-color .14s ease;
}
.jx-input:focus{
  border-color: var(--jx-primary);
  box-shadow: 0 0 0 4px rgba(47,107,255,.14);
}
.jx-row{ display:flex; gap:10px; align-items:center; }
.jx-row .jx-input{ flex:1; }
.jx-btn{
  width:100%;
  height:44px;
  border:0;
  border-radius: 12px;
  color:#fff;
  font-weight:800;
  letter-spacing:.18em;
  background: linear-gradient(90deg, var(--jx-primary), var(--jx-success));
  box-shadow: 0 12px 24px rgba(47,107,255,.18);
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transition: transform .14s ease, box-shadow .14s ease;
}
.jx-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(47,107,255,.22);
}
.jx-btn::after{
  content:"";
  position:absolute;
  top:-60%;
  left:-40%;
  width:60%;
  height:200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: rotate(18deg);
  animation: jxShine 2.8s ease-in-out infinite;
}
@keyframes jxShine{
  0%{ transform: translateX(-140%) rotate(18deg); opacity:.0; }
  35%{ opacity:.55; }
  60%{ opacity:.25; }
  100%{ transform: translateX(320%) rotate(18deg); opacity:0; }
}
.jx-meta{
  margin-top:12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--jx-text-2);
  font-size:12px;
}
.jx-meta a{ color:var(--jx-primary); text-decoration:none; font-weight:700; }
.jx-meta a:hover{ text-decoration:underline; }

@media (max-width: 860px){
  .jx-login__card{ grid-template-columns: 1fr; }
  .jx-login__hero{ display:none; }
}

/* -------- Dashboard page -------- */
.jx-dash{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color:var(--jx-text);
  background: var(--jx-bg);
  min-height: calc(100vh - 0px);
  padding: 16px 16px 22px;
}
.jx-dash *{ box-sizing:border-box; }
.jx-dash__top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.jx-dash__hello h2{
  margin:0;
  font-size:18px;
  font-weight:900;
  letter-spacing:.02em;
}
.jx-dash__hello p{
  margin:6px 0 0 0;
  color:var(--jx-text-2);
  font-weight:600;
  font-size:12px;
}
.jx-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.jx-action{
  height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--jx-border);
  background:#fff;
  color:var(--jx-text);
  font-weight:800;
  cursor:pointer;
  box-shadow: var(--jx-shadow-soft);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.jx-action:hover{
  transform: translateY(-1px);
  border-color: rgba(47,107,255,.35);
  box-shadow: 0 14px 24px rgba(0,0,0,.10);
}
.jx-action.--p{ color:#fff; border:0; background: linear-gradient(90deg, var(--jx-primary), var(--jx-success)); }

.jx-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.jx-card{
  background: var(--jx-card);
  border:1px solid rgba(228,231,237,.9);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  transition: transform .14s ease, box-shadow .14s ease;
  overflow:hidden;
}
.jx-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,.10);
}
.jx-card__hd{
  padding:12px 12px 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.jx-card__hd h3{ margin:0; font-size:13px; font-weight:900; }
.jx-card__bd{ padding:0 12px 12px; }

.jx-kpi{
  grid-column: span 2;
  padding:12px;
  position:relative;
}
.jx-kpi__ico{
  width:38px; height:38px; border-radius:12px;
  background: rgba(47,107,255,.12);
  display:flex; align-items:center; justify-content:center;
  color: var(--jx-primary);
  font-weight:900;
}
.jx-kpi__v{
  margin-top:10px;
  font-size:20px;
  font-weight:950;
  letter-spacing:.02em;
}
.jx-kpi__t{
  margin-top:4px;
  color: var(--jx-text-2);
  font-size:12px;
  font-weight:700;
}
.jx-kpi__s{
  position:absolute;
  right:12px; top:12px;
  font-size:12px;
  color: var(--jx-text-2);
  font-weight:800;
}
.jx-kpi.--g .jx-kpi__ico{ background: rgba(25,195,125,.14); color: var(--jx-success); }
.jx-kpi.--y .jx-kpi__ico{ background: rgba(255,214,102,.22); color: #b07a00; }
.jx-kpi.--r .jx-kpi__ico{ background: rgba(255,120,117,.14); color: var(--jx-danger); }
.jx-kpi.--c .jx-kpi__ico{ background: rgba(0,194,255,.14); color: #0aa2c7; }
.jx-kpi.--p .jx-kpi__ico{ background: rgba(91,143,249,.14); color: #4e7ff0; }

.jx-chart{ grid-column: span 7; min-height: 290px; }
.jx-rank{ grid-column: span 5; min-height: 290px; }
.jx-todo{ grid-column: span 4; min-height: 250px; }
.jx-quick{ grid-column: span 8; min-height: 250px; }

@media (max-width: 1200px){
  .jx-kpi{ grid-column: span 4; }
  .jx-chart{ grid-column: span 12; }
  .jx-rank{ grid-column: span 12; }
  .jx-todo{ grid-column: span 12; }
  .jx-quick{ grid-column: span 12; }
}

.jx-skeleton{
  height: 210px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, #f2f4f7 0%, #e9eef5 45%, #f2f4f7 80%);
  background-size: 200% 100%;
  animation: jxSk 1.1s ease-in-out infinite;
}
@keyframes jxSk{ to{ background-position: -200% 0; } }

.jx-todo__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(228,231,237,.75);
  margin-top:10px;
  background: #fff;
}
.jx-todo__item:first-child{ margin-top:0; }
.jx-todo__item b{ font-weight:900; }
.jx-todo__item small{ color:var(--jx-text-2); font-weight:700; display:block; margin-top:2px; }
.jx-go{
  height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(47,107,255,.25);
  background: rgba(47,107,255,.08);
  color: var(--jx-primary);
  font-weight:900;
  cursor:pointer;
}
.jx-go:hover{ background: rgba(47,107,255,.14); }

.jx-tiles{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
.jx-tile{
  padding:12px 12px;
  border-radius: 12px;
  border:1px solid rgba(228,231,237,.85);
  background: linear-gradient(135deg, rgba(47,107,255,.06), rgba(25,195,125,.05));
  cursor:pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.jx-tile:hover{
  transform: translateY(-2px);
  border-color: rgba(47,107,255,.22);
  box-shadow: 0 16px 28px rgba(0,0,0,.08);
}
.jx-tile b{ display:block; font-weight:950; }
.jx-tile span{ display:block; margin-top:4px; font-size:12px; color:var(--jx-text-2); font-weight:700;}

@media (max-width: 900px){
  .jx-tiles{ grid-template-columns: repeat(2, 1fr); }
}

