/* ============================================================================
   铭望咨询 · 高定视觉层 2026（LUXE）
   加载顺序：style.css → 内联主题块 → ui-premium-2026.css → 本文件（最后，同特异性必胜）
   原则：不改业务 DOM 逻辑，只做覆盖式精修；登录页 login2 为全新结构
   ========================================================================= */

/* ---------- 0. 全局基调 ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 0;             /* 正文默认比例数字，更接近印刷排印 */
}
::selection { background: rgba(47, 111, 237, .18); }
:focus-visible { outline: 2px solid rgba(47, 111, 237, .55); outline-offset: 2px; border-radius: 4px; }

/* 统一滚动条（内容区 / 侧栏 / 弹层通用） */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #c9d2e0; border-radius: 8px;
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #a9b6ca; border: 2px solid transparent; background-clip: padding-box; }
.sidebar nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border: 2px solid transparent; background-clip: padding-box; }
.sidebar nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); border: 2px solid transparent; background-clip: padding-box; }

/* 数字语境统一等宽数字：KPI、表格、统计值 */
.main .kpi-value, .main td, .main .stat .value,
.main .chart-bars .bar-row .v, .main .delta {
  font-variant-numeric: tabular-nums;
}

/* ---------- 1. 启动页（第一毫秒印象） ---------- */
.boot-splash {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(720px 420px at 12% 108%, rgba(0,191,166,.22), transparent 62%),
    radial-gradient(860px 520px at 92% -14%, rgba(64,116,255,.30), transparent 66%),
    linear-gradient(152deg, #071633 0%, #0A1F4C 44%, #0B2E6B 78%, #10398a 100%);
}
.boot-splash .boot-card { text-align: center; color: rgba(230, 238, 250, .92); }
.boot-splash .boot-brand { height: 52px; margin: 0 auto 26px; filter: drop-shadow(0 6px 22px rgba(0,0,0,.4)); }
.boot-splash .boot-bar {
  width: 220px; height: 4px; margin: 0 auto; border-radius: 4px;
  background: rgba(255, 255, 255, .12); overflow: hidden;
}
.boot-splash .boot-bar > i {
  display: block; height: 100%; width: 40%; border-radius: 4px;
  background: linear-gradient(90deg, #00BFA6, #4f83ff);
  animation: bootSlide 1.15s ease-in-out infinite;
}
@keyframes bootSlide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(560%); }
}
.boot-splash .boot-tip { font-size: 12.5px; letter-spacing: 1.6px; margin-top: 18px; color: rgba(230, 238, 250, .55); }

/* ---------- 2. 登录页 · 品牌卖场（login2） ---------- */
.login2 {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: stretch;
  background:
    radial-gradient(900px 560px at 8% 112%, rgba(0,191,166,.20), transparent 60%),
    radial-gradient(1100px 640px at 96% -18%, rgba(64,116,255,.32), transparent 64%),
    linear-gradient(152deg, #071633 0%, #0A1F4C 42%, #0B2E6B 76%, #10398a 100%);
}
/* 精密网格纹理：工程蓝图质感 */
.login2::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1100px 780px at 30% 40%, rgba(0,0,0,.9), transparent 78%);
  -webkit-mask-image: radial-gradient(1100px 780px at 30% 40%, rgba(0,0,0,.9), transparent 78%);
}
.login2-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.login2-orb.o1 { width: 460px; height: 460px; left: -140px; bottom: -180px; background: rgba(0,191,166,.20); }
.login2-orb.o2 { width: 560px; height: 560px; right: -160px; top: -220px; background: rgba(72,118,255,.24); }

.login2-inner {
  position: relative; z-index: 1; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(400px, .82fr);
  gap: 48px; max-width: 1440px; margin: 0 auto; padding: 0 56px;
  align-items: center; min-height: 100vh;
}

/* —— 左：品牌叙事 —— */
.login2-story { color: #e7eefb; padding: 48px 0; }
.ls-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 52px; }
.ls-brand img { height: 40px; width: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,.35)); }
.ls-brand .ls-en { font-size: 11px; letter-spacing: 3.2px; color: rgba(231,238,251,.52); font-weight: 600; }
.ls-brand .ls-divider { width: 1px; height: 22px; background: rgba(255,255,255,.22); }

.ls-h1 {
  margin: 0 0 18px; font-size: 42px; line-height: 1.32; font-weight: 800;
  letter-spacing: .5px; color: #f4f7fe;
}
.ls-h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #35e6cd 4%, #6ea0ff 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ls-sub {
  margin: 0 0 34px; max-width: 560px;
  font-size: 15px; line-height: 1.9; color: rgba(226, 234, 248, .68);
}
.ls-sub b { color: rgba(244, 247, 254, .92); font-weight: 600; }

/* 方法论徽章：HR 专业度信号 */
.ls-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 210px)); gap: 12px; margin-bottom: 40px; }
.ls-badge {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(6px);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.ls-badge:hover { transform: translateY(-2px); background: rgba(255,255,255,.09); border-color: rgba(53,230,205,.35); }
.ls-badge .ic {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: grid; place-items: center; font-size: 15px;
  background: linear-gradient(135deg, rgba(0,191,166,.30), rgba(79,131,255,.30));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.ls-badge b { display: block; font-size: 13.5px; font-weight: 700; color: #f2f6fd; letter-spacing: .4px; }
.ls-badge span { display: block; font-size: 11.5px; color: rgba(226,234,248,.55); margin-top: 2px; }

/* 数据背书条 */
.ls-stats { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.ls-stats > div b {
  display: block; font-size: 26px; font-weight: 800; letter-spacing: .4px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff, #a8c4f6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ls-stats > div span { display: block; font-size: 12px; color: rgba(226,234,248,.5); margin-top: 3px; letter-spacing: .5px; }
.ls-stats > i { width: 1px; height: 34px; background: rgba(255,255,255,.14); }

/* —— 右：登录卡 —— */
.login2-panel { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 0; }
.login2-card {
  width: 100%; max-width: 400px; background: #fff; border-radius: 20px;
  padding: 34px 34px 26px;
  box-shadow: 0 32px 90px rgba(2, 9, 26, .5), 0 4px 18px rgba(2, 9, 26, .3);
  animation: cardIn .5s cubic-bezier(.22, .9, .32, 1.2) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.lp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.lp-head .lp-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0A1F4C, #123a85);
  box-shadow: 0 6px 16px rgba(10, 31, 76, .3);
}
.lp-head .lp-mark img { width: 26px; height: 26px; object-fit: contain; }
.lp-head h2 { margin: 0; font-size: 20px; font-weight: 800; color: #101a2c; letter-spacing: .3px; }
.lp-head p { margin: 2px 0 0; font-size: 12px; color: #8b96a8; }

.login2-card .field { margin-bottom: 15px; }
.login2-card .field > span {
  display: block; font-size: 12.5px; font-weight: 600; color: #3d4a5f; margin-bottom: 6px; letter-spacing: .3px;
}
.login2-card .field input {
  width: 100%; padding: 11px 13px; font-size: 14px; color: #17233a;
  border: 1.5px solid #dde4ef; border-radius: 11px; background: #f9fbfe;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login2-card .field input:hover { border-color: #c4d2ea; }
.login2-card .field input:focus {
  outline: none; background: #fff;
  border-color: #2f6fed; box-shadow: 0 0 0 4px rgba(47, 111, 237, .13);
}
.login2-card .btn.primary {
  width: 100%; justify-content: center; margin-top: 10px;
  padding: 12px; font-size: 15px; font-weight: 700; letter-spacing: 6px; text-indent: 6px;
  border: none; border-radius: 12px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #2f6fed 0%, #1d54d6 100%);
  box-shadow: 0 10px 24px rgba(31, 84, 214, .32);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.login2-card .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(31, 84, 214, .4); filter: brightness(1.05); }
.login2-card .btn.primary:active { transform: translateY(0); }
.login2-card .btn.primary:disabled { opacity: .65; transform: none; }

/* 演示账号 · 一键体验 */
.lp-demo { margin-top: 20px; padding-top: 16px; border-top: 1px dashed #e4e9f2; }
.lp-demo-title { font-size: 12px; font-weight: 700; color: #5b6b85; letter-spacing: .5px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.lp-demo-title::before { content: ''; width: 4px; height: 12px; border-radius: 3px; background: linear-gradient(180deg, #2f6fed, #00b3a4); }
.lp-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
  border: 1px solid #e2e8f3; background: #f7faff;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: #2c3c58;
  transition: all .14s ease; text-align: left;
}
.lp-chip:hover { border-color: #9db9f2; background: #eef4ff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(47,111,237,.12); }
.lp-chip .ci { font-size: 14px; }
.lp-chip small { display: block; font-weight: 400; font-size: 10.5px; color: #93a1b8; margin-top: 1px; }
.lp-note { margin-top: 12px; font-size: 11.5px; color: #97a3b6; line-height: 1.7; }
.lp-note .mono { background: #eef2f8; padding: 1px 6px; border-radius: 5px; font-size: 11px; }

/* 卡片下信任条 */
.login2-foot { font-size: 12px; color: rgba(226, 234, 248, .5); letter-spacing: .4px; display: flex; align-items: center; gap: 6px; }
.login2-foot b { color: rgba(231, 238, 251, .75); font-weight: 600; }

/* 响应式：窄屏收为单栏，叙事区压缩 */
@media (max-width: 1080px) {
  .login2-inner { grid-template-columns: 1fr; max-width: 480px; gap: 0; padding: 0 22px; }
  .login2-story { display: none; }
  .login2-panel { padding: 6vh 0 32px; }
}
@media (min-width: 1081px) and (max-width: 1280px) {
  .ls-h1 { font-size: 34px; }
  .login2-inner { gap: 36px; padding: 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .login2-card { animation: none; }
  .boot-splash .boot-bar > i { animation-duration: 2s; }
}

/* ---------- 3. 主应用精修 ---------- */

/* 侧栏品牌区：更沉的底 + 收尾渐变线 */
.sidebar .brand { border-bottom: none; position: relative; }
.sidebar .brand::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(0,191,166,.55), rgba(79,131,255,.35), transparent);
}
.sidebar .brand .b-tag { font-size: 10.5px; color: #7d8ba3; margin-top: 3px; letter-spacing: .4px; }

/* 导航激活项：左侧青绿发光条 */
.sidebar nav .navitem { border-left: 3px solid transparent; border-radius: 0 8px 8px 0; margin: 1px 8px 1px 0; }
.sidebar nav .navitem.active {
  border-left-color: #35e6cd;
  background: linear-gradient(90deg, rgba(47, 111, 237, .22), rgba(47, 111, 237, .05));
  box-shadow: inset 0 0 24px rgba(47, 111, 237, .06);
}

/* 主按钮：品牌渐变 + 微交互 */
.main .btn.primary {
  background: linear-gradient(135deg, #2f6fed, #1d54d6) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(31, 84, 214, .26);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.main .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(31, 84, 214, .34); filter: brightness(1.04); }
.main .btn.primary:active { transform: translateY(0); }
.main .btn { transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, transform .15s ease; }
.main .btn:not(.primary):hover { border-color: #b9c8e4; box-shadow: 0 2px 8px rgba(16, 24, 40, .07); }

/* 输入控件 focus 环 */
.main input:focus, .main select:focus, .main textarea:focus {
  outline: none; border-color: #2f6fed !important;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, .12);
}
.main .pa-sel:focus, .main .pa-step input:focus, .main .pa-step select:focus {
  border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47, 111, 237, .12);
}

/* KPI 卡：数字渐变 + 底部光晕 */
.main .kpi-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--kc, #2f6fed) 5%, transparent));
  pointer-events: none;
}
.main .kpi-card .kpi-value {
  background: linear-gradient(180deg, #1a2436 20%, #3c4a63 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.main .kpi-card:hover .kpi-value { background: linear-gradient(180deg, #16203a 10%, #2f6fed 130%); -webkit-background-clip: text; background-clip: text; }

/* 表格：粘性表头 + 行指引 */
.main .table-wrap, .main .card-body { position: relative; }
.main th { position: sticky; top: 0; z-index: 2; }
.main tbody tr { transition: background .12s ease, box-shadow .12s ease; }
.main tbody tr:hover { box-shadow: inset 3px 0 0 #2f6fed; }

/* 选项卡精修 */
.main .tabbar .tab:not(.active):hover { color: #2f6fed !important; background: #f0f5ff !important; }

/* 弹窗精修 */
.main .modal-card, #modal-root .modal-card {
  border-radius: 16px !important;
  box-shadow: 0 28px 80px rgba(6, 14, 32, .34), 0 4px 16px rgba(6, 14, 32, .18) !important;
}

/* toast 精修 */
#toast > div {
  border-radius: 12px !important;
  box-shadow: 0 12px 36px rgba(6, 14, 32, .28) !important;
  backdrop-filter: blur(8px);
}

/* 打印模板预览、PaaS 面板元素融入设计体系 */
.main .pa-checks { border-radius: 10px; }
.main .nc-item.unread { background: linear-gradient(90deg, #f0f6ff, #fafcff); box-shadow: inset 3px 0 0 #2f6fed; }

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .main .kpi-card, .main .btn, .main tbody tr { transition: none !important; }
}
