/* ==========================================================================
   白瓷·极简（skin-t2.css）— data-theme="white"
   在 theme.css / meta.css / skin.css / skin-v2.css / mobile.css 之后加载
   仅覆盖视觉，不改动交互与打印区
   ========================================================================== */

/* ---------- 设计变量 ---------- */
html[data-theme="white"]{
  --brand:#2563eb;--brand-600:#1d4ed8;--brand-700:#1e40af;--brand-800:#172554;
  --brand-050:#eff4ff;--brand-100:#dbe7ff;
  --line:#e7e9ee;--line-strong:#d8dce4;
  --text:#15171c;--text-2:#596070;--text-3:#8b919e;
  --bg:#f6f7f9;--panel:#ffffff;
  --ok:#12a05c;--warn:#d97706;--danger:#e0384f;
  --radius:10px;
  --shadow:0 1px 2px rgba(16,24,40,.04),0 8px 24px rgba(16,24,40,.05);
  --side-w:232px;
}
html[data-theme="white"] body{
  background:#f6f7f9;
  letter-spacing:.1px;
}
html[data-theme="white"] ::selection{background:rgba(37,99,235,.16)}

/* ---------- 侧栏：白底细边 ---------- */
html[data-theme="white"] .shell>.side,
html[data-theme="white"] .app>.side{
  background:#fff;
  box-shadow:inset -1px 0 0 #e7e9ee;
}
html[data-theme="white"] .brand{
  padding:18px 16px 16px;
  border-bottom:1px solid #eef0f4;
}
html[data-theme="white"] .brand .logo,
html[data-theme="white"] .login-card .lg .logo{
  background:linear-gradient(135deg,#3b82f6,#2563eb);
  box-shadow:0 4px 12px rgba(37,99,235,.22);
  border-radius:10px;
}
html[data-theme="white"] .brand b{color:#15171c;font-size:14px;letter-spacing:.3px}
html[data-theme="white"] .brand i{color:#98a0ae;letter-spacing:1.1px;font-style:normal}
html[data-theme="white"] #nav .grp{
  color:#9aa1ae;font-size:11px;letter-spacing:1.1px;font-weight:600;
  padding:14px 18px 7px;text-transform:uppercase;
}
html[data-theme="white"] #nav .mi{
  color:#4a5160;background:transparent;border-left:0;
  margin:2px 10px;padding:9px 12px;border-radius:9px;
}
html[data-theme="white"] #nav .mi:hover{background:#f3f5f9;color:#15171c}
html[data-theme="white"] #nav .mi.on{
  background:#eff4ff;color:#1d4ed8;font-weight:600;
  box-shadow:inset 2px 0 0 #2563eb;
}
html[data-theme="white"] #nav::-webkit-scrollbar-thumb{background:#e2e5ea}

/* ---------- 顶栏 ---------- */
html[data-theme="white"] .top,
html[data-theme="white"] .topbar,
html[data-theme="white"] .toolbar{
  background:#fff;
  border-bottom:1px solid #e7e9ee;
  box-shadow:none;
  backdrop-filter:none;
}
html[data-theme="white"] .toolbar .title::before{
  background:linear-gradient(180deg,#60a5fa,#2563eb);width:3px;height:16px;border-radius:2px;
}
html[data-theme="white"] .crumb{color:#8b919e}
html[data-theme="white"] .crumb b{color:#15171c}
html[data-theme="white"] .who{color:#596070}
html[data-theme="white"] .avatar{background:#eff4ff;color:#2563eb}

/* ---------- 卡片 / 表格 ---------- */
html[data-theme="white"] .card,
html[data-theme="white"] .kpi,
html[data-theme="white"] .tablewrap{
  background:#fff;border:1px solid #e7e9ee;border-radius:12px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}
html[data-theme="white"] .tablewrap{border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
html[data-theme="white"] table.grid{border-radius:12px}
html[data-theme="white"] table.grid th{
  background:#f7f8fa;
  color:#6b7280;font-size:12px;font-weight:600;letter-spacing:.2px;
  border-bottom:1px solid #e7e9ee;
}
html[data-theme="white"] table.grid td{border-bottom:1px solid #f0f2f5;color:#15171c}
html[data-theme="white"] table.grid tbody tr:nth-child(even){background:#fbfcfd}
html[data-theme="white"] table.grid tbody tr:nth-child(even) td{background:#fbfcfd}
html[data-theme="white"] table.grid tbody tr:hover td,
html[data-theme="white"] table.grid tbody tr:hover{background:#f5f8ff}
html[data-theme="white"] table.grid tbody tr.sel td{background:#eaf1ff}
html[data-theme="white"] table.grid tfoot td{background:#f7f8fa;border-top:1px solid #e7e9ee;color:#15171c}
html[data-theme="white"] .section-label{color:#1e40af}
html[data-theme="white"] .section-label::before{background:#2563eb}

/* ---------- 按钮 ---------- */
html[data-theme="white"] .btn{
  border-radius:8px;border-color:#dfe3ea;background:#fff;color:#3c4352;
  transition:background .16s,border-color .16s,color .16s;
}
html[data-theme="white"] .btn:hover:not(:disabled){border-color:#2563eb;color:#2563eb;background:#f5f8ff}
html[data-theme="white"] .btn.primary{
  background:#2563eb;border-color:#2563eb;color:#fff;
  box-shadow:0 2px 8px rgba(37,99,235,.20);
}
html[data-theme="white"] .btn.primary:hover:not(:disabled){background:#1d4ed8;border-color:#1d4ed8;color:#fff;box-shadow:0 4px 12px rgba(37,99,235,.26)}
html[data-theme="white"] .btn.ghost{background:#fff;border-color:#dfe3ea}
html[data-theme="white"] .btn.ghost:hover:not(:disabled){border-color:#2563eb;color:#2563eb;background:#f5f8ff}
html[data-theme="white"] .btn:focus-visible{outline:2px solid #2563eb;outline-offset:1px}

/* ---------- 表单 ---------- */
html[data-theme="white"] .inp,
html[data-theme="white"] .fi input,
html[data-theme="white"] .fi select,
html[data-theme="white"] .mwrap,
html[data-theme="white"] input[type=text],
html[data-theme="white"] input[type=date],
html[data-theme="white"] input[type=number],
html[data-theme="white"] input[type=password],
html[data-theme="white"] input[type=month],
html[data-theme="white"] select,
html[data-theme="white"] textarea{
  border-radius:8px;border-color:#dfe3ea;background:#fff;
}
html[data-theme="white"] .inp:focus,
html[data-theme="white"] .fi input:focus,
html[data-theme="white"] .fi select:focus,
html[data-theme="white"] input:focus,
html[data-theme="white"] select:focus,
html[data-theme="white"] textarea:focus{
  outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.13);
}
html[data-theme="white"] .fi label{color:#596070;font-weight:500}
html[data-theme="white"] .pill.info{background:#eff4ff;color:#1d4ed8;border-color:#dbe7ff}

/* ---------- 弹窗 / 提示 ---------- */
html[data-theme="white"] #mask .dialog{border-radius:14px;box-shadow:0 24px 60px rgba(16,24,40,.20)}
html[data-theme="white"] .toast{border-radius:9px}

/* ==========================================================================
   登录页：左品牌 + 右表单（白瓷·极简）
   ========================================================================== */
html[data-theme="white"] .login-wrap{
  display:flex;align-items:stretch;justify-content:space-between;
  padding:0;min-height:100vh;background:#f6f7f9;
}
html[data-theme="white"] .login-hero{
  position:relative;flex:1 1 auto;overflow:hidden;
  background:linear-gradient(140deg,#1e293b 0%,#1d4ed8 100%);
  color:#fff;padding:52px 56px;display:flex;flex-direction:column;justify-content:space-between;
}
html[data-theme="white"] .login-hero::before{
  content:"";position:absolute;width:560px;height:560px;border-radius:50%;
  background:rgba(255,255,255,.08);right:-190px;top:-180px;
}
html[data-theme="white"] .login-hero::after{
  content:"";position:absolute;width:400px;height:400px;border-radius:50%;
  background:rgba(255,255,255,.06);left:-160px;bottom:-180px;
}
html[data-theme="white"] .hero-brand{display:flex;align-items:center;gap:12px;position:relative;z-index:1}
html[data-theme="white"] .hb-logo{
  width:46px;height:46px;border-radius:12px;background:rgba(255,255,255,.95);color:#1d4ed8;
  font-size:20px;font-weight:800;display:grid;place-items:center;flex:0 0 46px;
}
html[data-theme="white"] .hb-name{font-size:21px;font-weight:700;letter-spacing:1px}
html[data-theme="white"] .hb-sub{font-size:11px;letter-spacing:3px;opacity:.72;margin-top:3px}
html[data-theme="white"] .hero-mid{position:relative;z-index:1}
html[data-theme="white"] .hero-mid h1{margin:0;font-size:40px;font-weight:800;line-height:1.3;letter-spacing:1px}
html[data-theme="white"] .hero-mid p{margin:16px 0 0;font-size:14px;line-height:1.95;opacity:.84}
html[data-theme="white"] .hero-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
html[data-theme="white"] .hero-chips span{
  font-size:12px;padding:7px 14px;border-radius:20px;
  background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.24);
}
html[data-theme="white"] .hero-foot{position:relative;z-index:1;font-size:11.5px;opacity:.62}

html[data-theme="white"] .login-card{
  width:460px;flex:0 0 460px;margin:0;background:#fff;border-radius:0;box-shadow:none;
  padding:0 56px;display:flex;flex-direction:column;justify-content:center;min-height:100vh;
}
html[data-theme="white"] .login-card .lg{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #eef0f4}
html[data-theme="white"] .login-card h2{font-size:17px;color:#15171c;letter-spacing:.4px}
html[data-theme="white"] .login-card .field{margin-bottom:14px}
html[data-theme="white"] .login-card .field>label{font-size:12px;color:#596070;font-weight:500}
html[data-theme="white"] .login-card input[type=text],
html[data-theme="white"] .login-card input[type=password]{
  height:42px;border-radius:9px;border-color:#dfe3ea;background:#fbfcfd;padding:0 12px;font-size:13.5px;
}
html[data-theme="white"] .login-card input[type=text]:focus,
html[data-theme="white"] .login-card input[type=password]:focus{background:#fff}
html[data-theme="white"] .login-card .login-row{margin:2px 0 18px}
html[data-theme="white"] .login-card .remember{font-size:12px;color:#596070}
html[data-theme="white"] .login-card .lnk-forgot{color:#2563eb;font-weight:500}
html[data-theme="white"] .login-card .btn.primary{
  height:44px;border-radius:9px;font-size:14.5px;font-weight:600;letter-spacing:2px;
  background:#2563eb;border-color:#2563eb;box-shadow:0 6px 16px rgba(37,99,235,.24);
}
html[data-theme="white"] .login-card .btn.primary:hover{background:#1d4ed8;border-color:#1d4ed8}
html[data-theme="white"] .login-card .forgot-panel{border-top-color:#eef0f4}
html[data-theme="white"] .login-card .forgot-panel .fp-title{color:#15171c;font-size:14px}
html[data-theme="white"] .login-card .login-foot{
  background:#f6f7f9;color:#6b7280;border-radius:8px;padding:9px 11px;font-size:11.5px;line-height:1.7;
}

/* ---------- 登录页响应式 ---------- */
@media (max-width:1180px){
  html[data-theme="white"] .login-hero{padding:44px 40px}
  html[data-theme="white"] .hero-mid h1{font-size:34px}
  html[data-theme="white"] .login-card{width:420px;flex:0 0 420px;padding:0 40px}
}
@media (max-width:860px){
  html[data-theme="white"] .login-wrap{display:block;background:#fff}
  html[data-theme="white"] .login-hero{display:none}
  html[data-theme="white"] .login-card{
    width:100%;flex:1 1 auto;min-height:100vh;padding:38px 24px;justify-content:center;
  }
  html[data-theme="white"] .login-card .lg{justify-content:center;border-bottom:0;margin-bottom:24px}
  html[data-theme="white"] .login-card h2{font-size:19px}
}


/* ==========================================================================
   品牌 Logo（全主题通用）
   ========================================================================== */
.brand img.badge{height:30px;width:auto;display:block;flex:0 0 auto}
.login-card img.badge{height:42px;width:auto;display:block;flex:0 0 auto}
.hero-brand img.badge{height:32px;width:auto;display:block}
html[data-theme="dark"] .brand img.badge,
html[data-theme="dark"] .login-card img.badge{background:#fff;border-radius:8px;padding:5px 7px;height:40px}
html[data-theme="white"] .hb-logo{
  width:auto;height:auto;padding:8px 11px;border-radius:12px;background:#fff;
  display:flex;align-items:center;box-shadow:0 6px 18px rgba(6,18,48,.18);
}
html[data-theme="white"] .hero-brand .hb-name{font-size:18px;letter-spacing:1.2px}
html[data-theme="white"] .hero-brand .hb-sub{font-size:10.5px;letter-spacing:2.4px;opacity:.66;margin-top:4px}
html[data-theme="white"] .brand b{font-size:13px;letter-spacing:.2px}
html[data-theme="white"] .brand i{font-size:9.5px;letter-spacing:1.4px}
@media (max-width:860px){
  html[data-theme="white"] .login-card img.badge{height:46px}
  html[data-theme="white"] .hero-brand img.badge{height:28px}
}

/* ---------- 打印区保持原样 ---------- */
@media print{
  html[data-theme="white"] body{background:#fff}
}
