/* ============================================================
   业勤OA · 科技感皮肤（ui-boost）
   与门户首页同款深色科技风：网格、光晕、玻璃质感、渐变发光。
   仅改视觉，不改任何业务 DOM 与交互。
   ============================================================ */

/* ---------------- 登录页 ---------------- */
body:has(.login-wrap) { background: #0a1226; }
.login-wrap {
  position: relative;
  background:
    radial-gradient(700px 420px at 8% -8%, rgba(47,98,240,.30) 0%, transparent 62%),
    radial-gradient(620px 400px at 96% 8%, rgba(37,224,174,.16) 0%, transparent 58%),
    radial-gradient(680px 420px at 50% 112%, rgba(109,74,230,.18) 0%, transparent 62%),
    #0a1226;
  overflow: hidden;
}
.login-wrap::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(90,130,220,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(90,130,220,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}
.login-wrap::after {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  right: -160px; bottom: -220px; background: rgba(47,98,240,.20); filter: blur(110px); pointer-events: none;
}
.login-card {
  position: relative; z-index: 2;
  width: 400px;
  background: linear-gradient(160deg, rgba(20,35,69,.92), rgba(11,21,43,.94));
  border: 1px solid rgba(120,150,220,.28);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.login-card::before {
  height: 4px;
  background: linear-gradient(90deg, #2f62f0 0%, #5b8bff 45%, #25e0ae 100%);
  box-shadow: 0 0 22px rgba(91,139,255,.7);
}
.login-head h1 {
  color: #eaf0ff; font-size: 21px; letter-spacing: 1px; margin: 0;
  background: linear-gradient(100deg, #eaf0ff 0%, #9fb8ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.login-heading { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.login-brand-sub {
  font-size: 11px; letter-spacing: 2px; color: #25e0ae; font-weight: 500;
  padding-top: 7px; position: relative; white-space: nowrap;
}
.login-brand-sub::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); top: 0;
  width: 32px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #25e0ae, transparent);
}
.logo-mark { box-shadow: 0 8px 24px rgba(47,98,240,.45); }
.login-card .field > span { color: #9fb0d4; }
.login-card .field input {
  background: rgba(9,17,36,.72); color: #eaf0ff;
  border: 1px solid rgba(120,150,220,.28);
}
.login-card .field input::placeholder { color: #6f81a8; }
.login-card .field input:focus {
  border-color: #5b8bff; box-shadow: 0 0 0 3px rgba(91,139,255,.18);
}
.login-card .pwd-eye { color: #9fb0d4; }
.login-card .remember { color: #9fb0d4; }
.login-card .remember input { accent-color: #25e0ae; }
.login-card .hint { color: #6f81a8; }
.login-card .err { color: #ff8f9c; }
.login-or { color: #6f81a8; }
.login-or::before, .login-or::after { background: rgba(120,150,220,.2); }
.login-card .btn.primary {
  background: linear-gradient(100deg, #2f62f0, #4f7bff);
  border: none; color: #fff; font-weight: 600; letter-spacing: 4px;
  box-shadow: 0 10px 28px rgba(47,98,240,.42);
  transition: transform .18s, box-shadow .18s;
}
.login-card .btn.primary:hover {
  transform: translateY(-2px); box-shadow: 0 14px 34px rgba(47,98,240,.58);
}
body:has(.login-wrap) .icp-footer { color: #6f81a8; }
body:has(.login-wrap) .icp-footer a { color: #9fb0d4; }

/* ---------------- 侧栏 ---------------- */
.sidebar {
  background:
    linear-gradient(180deg, rgba(16,29,58,.98), rgba(10,18,38,.98)),
    #0a1226;
  border-right: 1px solid rgba(120,150,220,.18);
  position: relative;
}
.sidebar::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(90,130,220,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(90,130,220,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.sidebar > * { position: relative; z-index: 1; }
.brand { border-bottom: 1px solid rgba(120,150,220,.16); }
.brand-lock { gap: 3px; }
.brand-text { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.2; }
.brand-sub {
  color: #25e0ae; font-size: 10.5px; font-weight: 500; letter-spacing: .6px;
  line-height: 1.4; padding-top: 5px; position: relative; white-space: nowrap;
}
.brand-sub::before {
  content: ''; position: absolute; left: 0; top: 0; width: 26px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, #5b8bff, #25e0ae);
}
.nav-group-title { color: #9fb0d4; }
.nav-group-title:hover { color: #eaf0ff; background: rgba(91,139,255,.10); }
.nav-group-title .gcount { color: #6f81a8; }
.nav-item { color: #9fb0d4; }
.nav-item:hover { background: rgba(91,139,255,.10); color: #eaf0ff; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(47,98,240,.32), rgba(47,98,240,.08));
  color: #cfe0ff; font-weight: 600;
  box-shadow: inset 0 0 20px rgba(47,98,240,.12);
}
.nav-item.active::before {
  background: linear-gradient(180deg, #5b8bff, #25e0ae);
  box-shadow: 0 0 10px rgba(91,139,255,.9);
}
.nav-sub-item { color: #8b9dc4; }
.nav-sub-item:hover { background: rgba(91,139,255,.10); color: #eaf0ff; }
.nav-sub-item.active {
  background: linear-gradient(90deg, rgba(47,98,240,.26), rgba(47,98,240,.06));
  color: #cfe0ff; font-weight: 600;
}
.nav-sub-item.active::before { background: linear-gradient(180deg, #5b8bff, #25e0ae); }
.sidebar-foot { border-top: 1px solid rgba(120,150,220,.16); }
.me-name { color: #eaf0ff; }
.me-role, .me-dept { color: #6f81a8; }
.sidebar-foot .btn.ghost {
  color: #9fb0d4; border-color: rgba(120,150,220,.28); background: rgba(91,139,255,.06);
}
.sidebar-foot .btn.ghost:hover { color: #eaf0ff; border-color: #5b8bff; background: rgba(91,139,255,.14); }

/* ---------------- 顶栏 ---------------- */
.topbar {
  background: rgba(12,22,45,.88);
  border-bottom: 1px solid rgba(120,150,220,.18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.co-name {
  background: linear-gradient(100deg, #eaf0ff, #9fb8ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.co-sep { background: rgba(120,150,220,.25); }
.topbar h2 { color: #9fb0d4; }
.topbar .btn.ghost {
  color: #c3d2f5; border-color: rgba(120,150,220,.28); background: rgba(91,139,255,.06);
}
.topbar .btn.ghost:hover { color: #fff; border-color: #5b8bff; background: rgba(91,139,255,.16); }
.greet { color: #c3d2f5; }
.greet b { color: #eaf0ff; }
.greet .greet-tip { color: #6f81a8; }
#today { color: #9fb0d4; }
.plan-badge { color: #25e0ae; }

/* ---------------- 主内容区 ---------------- */
.main {
  background:
    radial-gradient(900px 380px at 100% 0%, rgba(47,98,240,.055), transparent 60%),
    #f2f5fb;
}

/* ---------------- 驾驶舱 Hero ---------------- */
.dash-hero {
  position: relative; overflow: hidden;
  border-radius: 18px; margin-bottom: 18px; padding: 30px 34px;
  background: linear-gradient(112deg, #0d1a37 0%, #132952 52%, #0d2240 100%);
  border: 1px solid rgba(120,150,220,.22);
  box-shadow: 0 18px 44px rgba(13,26,55,.24), inset 0 1px 0 rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.dash-hero .dh-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(90,130,220,.10) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(90,130,220,.10) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to right, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 85%);
}
.dash-hero .dh-glow {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.dash-hero .dh-glow-a { width: 300px; height: 300px; background: rgba(47,98,240,.34); right: 12%; top: -130px; }
.dash-hero .dh-glow-b { width: 240px; height: 240px; background: rgba(37,224,174,.14); right: -60px; bottom: -140px; }
.dh-copy { position: relative; z-index: 2; min-width: 0; }
.dh-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: 100px;
  background: rgba(91,139,255,.12); border: 1px solid rgba(120,150,220,.26);
  color: #9fb0d4; font-size: 12px; margin-bottom: 14px;
}
.dh-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #25e0ae;
  box-shadow: 0 0 0 4px rgba(37,224,174,.15); animation: dh-pulse 2s infinite;
}
@keyframes dh-pulse { 0%,100%{opacity:1} 50%{opacity:.45} }
.dh-copy h1 { font-size: 29px; line-height: 1.25; color: #eaf0ff; margin: 0 0 10px; font-weight: 700; letter-spacing: -.5px; }
.dh-copy h1 span {
  background: linear-gradient(100deg, #5b8bff, #25e0ae);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dh-copy p { color: #9fb0d4; font-size: 13.5px; margin: 0 0 20px; }
.dh-copy p b { color: #eaf0ff; font-weight: 600; }
.dh-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dh-btn {
  border: 1px solid rgba(120,150,220,.3); border-radius: 9px;
  padding: 8px 16px; font-size: 13px; cursor: pointer; transition: .2s;
  background: rgba(91,139,255,.08); color: #c3d2f5; font-family: inherit;
}
.dh-btn:hover { border-color: #5b8bff; color: #fff; transform: translateY(-1px); }
.dh-btn.primary {
  background: linear-gradient(100deg, #2f62f0, #4f7bff); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 8px 22px rgba(47,98,240,.36);
}
.dh-chips { position: relative; z-index: 2; display: grid; gap: 10px; min-width: 210px; }
.dh-chip {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 11px 15px; border-radius: 11px;
  background: rgba(18,34,68,.72); border: 1px solid rgba(120,150,220,.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dh-chip span { color: #9fb0d4; font-size: 12.5px; }
.dh-chip b { color: #eaf0ff; font-size: 17px; font-variant-numeric: tabular-nums; }
.dh-chip:first-child b { color: #5ce9c4; }
@media(max-width: 1100px) { .dash-hero { flex-direction: column; align-items: stretch; } .dh-chips { grid-template-columns: repeat(3,1fr); min-width: 0; } }
@media(max-width: 760px) { .dh-chips { grid-template-columns: 1fr; } .dh-copy h1 { font-size: 24px; } }

/* ---------------- 统计卡片微增强 ---------------- */
.view > .dash-hero + .grid .card.stat {
  transition: transform .18s, box-shadow .18s, border-color .18s;
  border-top: 2px solid var(--tone, #2f62f0);
}
.view > .dash-hero + .grid .card.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(22,35,61,.12);
  border-color: rgba(91,139,255,.4);
}
