/* ============================================================
 * 玄武蜘蛛池 · 多风格主题系统  v4.0
 * 主题：sass（极简仪表盘 · 现代 SaaS 数据工作台风格）
 * 设计参考：现代 SaaS 仪表盘（白色顶栏 + 深黑侧栏 + 浅灰蓝工作区 + 白色大圆角数据卡 + 蓝调强调）
 * 说明：本文件依赖 theme.css 先加载，仅通过 html[data-theme="sass"]
 *       作用域覆盖视觉样式，不触碰任何业务逻辑与交互标记。
 * ============================================================ */

html[data-theme="sass"]{
  /* 品牌色：SaaS 蓝 */
  --brand-1:#2f6fed;
  --brand-2:#2558c5;
  --brand-3:#1b4496;
  --brand-soft:#ecf2ff;
  --ok:#16a34a;
  --ok-soft:#eafaf0;
  --warn:#f39c12;
  --warn-soft:#fff6e6;
  --danger:#e74c3c;
  --danger-soft:#fdeceb;
  --info:#3498db;
  /* 中性色 */
  --ink:#1c2433;
  --ink-2:#526074;
  --muted:#8a97aa;
  --muted-2:#b8c2d0;
  --line:#e7ecf4;
  --line-2:#f3f6fa;
  --bg:#f4f6fa;
  --card:#ffffff;
  /* 侧边栏 */
  --side-1:#1c1c20;
  --side-2:#121216;
  --side-txt:rgba(255,255,255,.84);
  --side-active:#ffffff;
  /* 圆角与阴影：SaaS 大圆角、柔和投影 */
  --r-lg:14px;
  --r-md:12px;
  --r-sm:6px;
  --sh-1:0 1px 2px rgba(24,34,58,.04),0 4px 14px -8px rgba(24,34,58,.16);
  --sh-2:0 6px 18px -8px rgba(24,34,58,.22);
  --sh-brand:0 4px 12px rgba(47,111,237,.28);
  /* 字体 */
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Roboto,Helvetica,Arial,sans-serif;
}

/* ============ 基础 ============ */
html[data-theme="sass"] body{
  background:linear-gradient(180deg,#f8fafc 0%,var(--bg) 100%) !important;
  color:var(--ink-2);
  font-family:var(--font);
}
html[data-theme="sass"] ::selection{background:rgba(47,111,237,.22);color:#173f2f;}
html[data-theme="sass"] ::-webkit-scrollbar{width:8px;height:8px;}
html[data-theme="sass"] ::-webkit-scrollbar-thumb{background:#cbd4e1;border-radius:20px;border:2px solid transparent;background-clip:padding-box;}
html[data-theme="sass"] ::-webkit-scrollbar-thumb:hover{background:#9aa7ba;background-clip:padding-box;}

/* ============ 顶栏：亮蓝色操作条 ============ */
html[data-theme="sass"] .header{
  height:50px;
  padding:0 18px;
  background:linear-gradient(90deg,#2f6fed,#2558c5) !important;
  border-bottom:none !important;
  box-shadow:0 2px 8px rgba(24,34,58,.12) !important;
  color:#fff;
}
html[data-theme="sass"] .header h2{
  padding-left:38px;
  gap:9px;
  font-size:15px;font-weight:700;letter-spacing:.2px;
  color:#fff !important;
  white-space:nowrap;
}
html[data-theme="sass"] .header h2::before{
  content:"HT";
  left:0;top:50%;transform:translateY(-50%);
  width:26px;height:26px;
  display:flex;align-items:center;justify-content:center;
  border-radius:5px;
  background:#fff !important;
  box-shadow:0 2px 6px rgba(24,34,58,.16);
  color:var(--brand-2);
  font-size:10px;font-weight:800;letter-spacing:.3px;
  -webkit-mask:none;mask:none;
}
html[data-theme="sass"] .header h2::after{display:none;}
html[data-theme="sass"] .header>div{
  gap:10px;
  color:rgba(255,255,255,.90) !important;
  font-size:12.5px;
}
html[data-theme="sass"] .header>div::before{
  width:22px;height:22px;
  background-color:rgba(255,255,255,.92);
  filter:none;
}
html[data-theme="sass"] .header a{
  padding:5px 11px;
  border-radius:4px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.16);
  color:#fff !important;
  font-size:12px;font-weight:500;
  box-shadow:none;
}
html[data-theme="sass"] .header a::before{width:13px;height:13px;}
html[data-theme="sass"] .header a:hover{
  background:rgba(255,255,255,.28);
  color:#fff !important;
  border-color:rgba(255,255,255,.55);
  transform:none;box-shadow:none;
}

/* ============ 布局与侧边栏 ============ */
html[data-theme="sass"] .container{min-height:calc(100vh - 50px);}
html[data-theme="sass"] .sidebar{
  width:190px;flex:none;
  padding:12px 10px 24px;
  background:linear-gradient(180deg,var(--side-1),var(--side-2)) !important;
  border-right:none;
  color:var(--side-txt);
  position:sticky;top:50px;height:calc(100vh - 50px);
  overflow-y:auto;
  box-shadow:2px 0 10px -8px rgba(24,34,58,.5);
}
html[data-theme="sass"] .sidebar::-webkit-scrollbar{width:0;}
/* 顶部用户信息位（纯装饰） */
html[data-theme="sass"] .sidebar::before{
  content:"管理控制台";
  display:flex;align-items:center;
  height:52px;margin-bottom:12px;
  padding:0 12px 0 44px;
  border-radius:7px;
  background-color:rgba(255,255,255,.14);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23ffffff' opacity='.92'/%3E%3Ccircle cx='12' cy='9' r='3.2' fill='%231e9fff'/%3E%3Cpath d='M5.5 20a6.5 6.5 0 0 1 13 0' fill='%231e9fff'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:10px center;
  background-size:26px 26px;
  color:#fff;font-size:13px;font-weight:700;
}
html[data-theme="sass"] .sidebar>p,
html[data-theme="sass"] .sidebar p[style]{
  display:flex;align-items:center;gap:9px;
  height:30px !important;line-height:30px !important;
  margin:10px 4px 4px !important;
  padding:0 10px !important;
  text-indent:0 !important;
  background:transparent !important;
  color:rgba(255,255,255,.72) !important;
  font-size:12px;font-weight:600;
  letter-spacing:0;text-transform:none;
  border-left:none;
}
html[data-theme="sass"] .sidebar>p::before,
html[data-theme="sass"] .sidebar p[style]::before{
  content:'';width:14px;height:14px;flex:none;
  background:rgba(255,255,255,.8);border-radius:0;
  -webkit-mask:var(--i-dash) no-repeat center/contain;
  mask:var(--i-dash) no-repeat center/contain;
}
html[data-theme="sass"] .sidebar a{
  position:relative;
  display:flex;align-items:center;gap:10px;
  padding:9px 11px;margin:2px 0;
  border-radius:6px;
  color:rgba(255,255,255,.82);
  font-size:13px;font-weight:500;
  transition:background .16s,color .16s,transform .16s;
}
html[data-theme="sass"] .sidebar a::before{
  width:16px;height:16px;
  opacity:.9;
}
html[data-theme="sass"] .sidebar a:hover{
  background:rgba(255,255,255,.12);
  color:#fff;transform:none;
}
html[data-theme="sass"] .sidebar a.active,
html[data-theme="sass"] .sidebar a[class="active"]{
  background:var(--brand-1);
  color:#fff;font-weight:700;
  box-shadow:0 2px 8px rgba(47,111,237,.35);
}
html[data-theme="sass"] .sidebar a.active::before,
html[data-theme="sass"] .sidebar a[class="active"]::before{
  color:#fff;opacity:1;
}
html[data-theme="sass"] .sidebar a.active::after,
html[data-theme="sass"] .sidebar a[class="active"]::after{display:none;}

/* ============ 主区域 ============ */
html[data-theme="sass"] .main{
  padding:16px 18px 36px;
  background:var(--bg) !important;
}

/* ============ 统计卡片：左侧彩色图标 ============ */
html[data-theme="sass"] .stat-box{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:14px;margin-bottom:14px;
}
html[data-theme="sass"] .stat-item{
  position:relative;overflow:hidden;
  min-height:82px;
  padding:16px 16px 14px 58px !important;
  background:#fff !important;
  border:1px solid var(--line) !important;
  border-radius:var(--r-md) !important;
  box-shadow:var(--sh-1) !important;
  transition:transform .18s,box-shadow .18s;
}
html[data-theme="sass"] .stat-item::before{
  content:'';position:absolute;left:16px;top:16px;
  width:28px;height:28px;border-radius:6px;
  background:linear-gradient(135deg,#2f6fed,#2558c5) !important;
  box-shadow:0 3px 8px rgba(47,111,237,.25);
  -webkit-mask:none;mask:none;
}
html[data-theme="sass"] .stat-item::after{
  content:'';position:absolute;left:23px;top:23px;
  width:14px;height:14px;
  background:#fff;
  -webkit-mask:var(--i-zap) no-repeat center/contain;
  mask:var(--i-zap) no-repeat center/contain;
}
html[data-theme="sass"] .stat-item:nth-child(2)::before{background:linear-gradient(135deg,#f5b041,#e67e22) !important;box-shadow:0 3px 8px rgba(230,126,34,.24);}
html[data-theme="sass"] .stat-item:nth-child(3)::before{background:linear-gradient(135deg,#8b5cf6,#6d28d9) !important;box-shadow:0 3px 8px rgba(139,92,246,.24);}
html[data-theme="sass"] .stat-item:nth-child(4)::before{background:linear-gradient(135deg,#ec7063,#c0392b) !important;box-shadow:0 3px 8px rgba(192,57,43,.24);}
html[data-theme="sass"] .stat-item:hover{transform:translateY(-2px);box-shadow:var(--sh-2) !important;}
html[data-theme="sass"] .stat-item .num{
  font-size:22px;font-weight:700;letter-spacing:0;
  color:var(--ink) !important;line-height:1.25;
}
html[data-theme="sass"] .stat-item:nth-child(2) .num,
html[data-theme="sass"] .stat-item:nth-child(3) .num,
html[data-theme="sass"] .stat-item:nth-child(4) .num{font-size:22px;}
html[data-theme="sass"] .stat-item .label{
  margin-top:4px;color:var(--muted);font-size:12px;font-weight:500;gap:6px;
}
html[data-theme="sass"] .stat-item .label::before{
  width:6px;height:6px;background:var(--brand-1);box-shadow:0 0 0 3px var(--brand-soft);
}
html[data-theme="sass"] .stat-item:nth-child(2) .label::before{background:#e67e22;box-shadow:0 0 0 3px #fff3e6;}
html[data-theme="sass"] .stat-item:nth-child(3) .label::before{background:#3498db;box-shadow:0 0 0 3px #ecf2ff;}
html[data-theme="sass"] .stat-item:nth-child(4) .label::before{background:#c0392b;box-shadow:0 0 0 3px #fdecea;}

/* ============ 内容卡片 ============ */
html[data-theme="sass"] .content,
html[data-theme="sass"] .main>div[style*="background:#fff"],
html[data-theme="sass"] .main>div[style*="background: #fff"]{
  background:#fff !important;
  border:1px solid var(--line) !important;
  border-radius:var(--r-md) !important;
  padding:16px 18px !important;
  box-shadow:var(--sh-1) !important;
}
html[data-theme="sass"] .content h3,
html[data-theme="sass"] .main h3{
  font-size:14px;font-weight:700;color:var(--ink);
  gap:8px;
  padding-bottom:10px;
  margin-bottom:12px;
  border-bottom:1px solid var(--line-2);
}
html[data-theme="sass"] .content h3::before,
html[data-theme="sass"] .main h3::before{
  width:3px;height:14px;border-radius:2px;
  background:var(--brand-1);
}
html[data-theme="sass"] .main p[style*="line-height:2"]{
  color:var(--muted) !important;font-size:13px;
}

/* ============ 表格 ============ */
html[data-theme="sass"] .layui-table{
  width:100%;
  border-collapse:separate !important;
  border-spacing:0;
  background:#fff !important;
  color:var(--ink-2) !important;
  border:1px solid var(--line) !important;
  border-radius:var(--r-md) !important;
  overflow:hidden;
  box-shadow:var(--sh-1) !important;
  margin:6px 0 14px !important;
}
html[data-theme="sass"] .layui-table th{
  background:#f8fafc !important;
  color:#5c6a80 !important;
  font-weight:600 !important;font-size:12px;
  text-align:left;
  padding:10px 12px !important;
  border-bottom:1px solid var(--line) !important;
  white-space:nowrap;
}
html[data-theme="sass"] .layui-table td{
  padding:10px 12px !important;
  border-bottom:1px solid var(--line-2) !important;
  font-size:13px;
  vertical-align:middle;
  background:#fff !important;
  color:#3d4d63 !important;
}
html[data-theme="sass"] .layui-table tbody tr{transition:background .15s;}
html[data-theme="sass"] .layui-table tbody tr:hover td{background:#f1f6ff !important;}
html[data-theme="sass"] .layui-table tbody tr:last-child td{border-bottom:none !important;}
html[data-theme="sass"] .layui-table img{max-width:100%;}
/* 状态文字做成小胶囊，保留原有语义色 */
html[data-theme="sass"] .layui-table td span[style*="color"],
html[data-theme="sass"] .layui-table td strong[style*="color"],
html[data-theme="sass"] .layui-table td a[style*="color"]{
  display:inline-block;
  padding:1px 7px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#f8fafc;
  font-size:11.5px;font-weight:600;line-height:18px;
}

/* ============ 表单 ============ */
html[data-theme="sass"] .layui-form-label{
  color:var(--ink-2) !important;font-weight:600;font-size:13px;
  padding:8px 10px !important;
}
html[data-theme="sass"] .layui-input,
html[data-theme="sass"] .layui-select,
html[data-theme="sass"] .layui-textarea,
html[data-theme="sass"] .form-input{
  border:1px solid #e1e7f0 !important;
  border-radius:var(--r-sm) !important;
  background:#fff !important;
  color:var(--ink) !important;
  font-family:var(--font) !important;
  font-size:13px !important;
  padding-left:12px !important;
  transition:border-color .16s,box-shadow .16s !important;
  box-shadow:none !important;
}
html[data-theme="sass"] .layui-input::placeholder,
html[data-theme="sass"] .layui-textarea::placeholder,
html[data-theme="sass"] .form-input::placeholder{color:var(--muted-2) !important;}
html[data-theme="sass"] .layui-input:hover,
html[data-theme="sass"] .layui-select:hover,
html[data-theme="sass"] .layui-textarea:hover,
html[data-theme="sass"] .form-input:hover{border-color:#9dbdf7 !important;}
html[data-theme="sass"] .layui-input:focus,
html[data-theme="sass"] .layui-select:focus,
html[data-theme="sass"] .layui-textarea:focus,
html[data-theme="sass"] .form-input:focus{
  border-color:var(--brand-1) !important;
  box-shadow:0 0 0 3px rgba(47,111,237,.12) !important;
  outline:none !important;
}
html[data-theme="sass"] .layui-textarea{padding:10px 12px !important;line-height:1.7;resize:vertical;}
html[data-theme="sass"] .layui-form-select dl{
  border-radius:var(--r-sm);border-color:var(--line);
  box-shadow:var(--sh-2);padding:5px;top:100% !important;
}
html[data-theme="sass"] .layui-form-select dl dd.layui-this{background:var(--brand-1) !important;}
html[data-theme="sass"] .layui-form-select dl dd:hover{background:var(--brand-soft) !important;}
html[data-theme="sass"] .layui-form-checked,
html[data-theme="sass"] .layui-form-checked:hover{
  border-color:var(--brand-1) !important;background-color:var(--brand-1) !important;
}
html[data-theme="sass"] .layui-form-radio>i,
html[data-theme="sass"] .layui-form-checked>i,
html[data-theme="sass"] .layui-form-checkbox>i{color:var(--brand-1) !important;}
html[data-theme="sass"] .layui-input-block{margin-left:0 !important;}
html[data-theme="sass"] .layui-form-item{margin-bottom:17px;}
html[data-theme="sass"] option{background:#fff;color:var(--ink);}

/* ============ 按钮 ============ */
html[data-theme="sass"] .layui-btn{
  border-radius:var(--r-sm) !important;
  font-family:var(--font) !important;
  font-weight:500;font-size:13px;
  height:34px;line-height:34px;padding:0 15px;
  transition:all .18s !important;
  border:1px solid transparent !important;
  box-shadow:none !important;
}
html[data-theme="sass"] .layui-btn:hover{transform:translateY(-1px);}
html[data-theme="sass"] .layui-btn:active{transform:translateY(0);}
/* layui 按钮统一为 SaaS 蓝 */
html[data-theme="sass"] .layui-btn:not(.layui-btn-primary):not(.layui-btn-danger):not(.layui-btn-warm){
  background:linear-gradient(180deg,#4a8bff,#2f6fed) !important;
  color:#fff !important;
  border-color:#2558c5 !important;
  box-shadow:var(--sh-brand) !important;
}
html[data-theme="sass"] .layui-btn:not(.layui-btn-primary):not(.layui-btn-danger):not(.layui-btn-warm):hover{
  background:linear-gradient(180deg,#2f6fed,#1f4fb0) !important;
  box-shadow:0 6px 14px rgba(47,111,237,.32) !important;
}
html[data-theme="sass"] .layui-btn-primary{
  background:#fff !important;color:var(--ink-2) !important;
  border-color:#e1e7f0 !important;
}
html[data-theme="sass"] .layui-btn-primary:hover{
  color:var(--brand-2) !important;border-color:var(--brand-1) !important;
  background:var(--brand-soft) !important;box-shadow:none;
}
html[data-theme="sass"] .layui-btn-danger{
  background:linear-gradient(180deg,#ec7063,#d94f43) !important;color:#fff !important;
  border-color:#c0392b !important;
}
html[data-theme="sass"] .layui-btn-warm{
  background:linear-gradient(180deg,#f5b041,#e67e22) !important;color:#fff !important;
  border-color:#d35400 !important;
}
html[data-theme="sass"] .layui-btn-sm{height:28px;line-height:28px;padding:0 11px;font-size:12px;}
html[data-theme="sass"] .layui-btn-xs{height:22px;line-height:22px;padding:0 8px;font-size:11.5px;border-radius:4px !important;}
html[data-theme="sass"] .layui-btn-fluid{width:100%;}

/* ============ 提示条 / 结果框 / 卡片 ============ */
html[data-theme="sass"] blockquote{
  background:var(--brand-soft) !important;
  border-left:3px solid var(--brand-1) !important;
  border-radius:0 var(--r-sm) var(--r-sm) 0 !important;
  padding:11px 15px !important;
  color:var(--brand-3) !important;font-size:13px;
}
html[data-theme="sass"] code{
  background:var(--brand-soft) !important;
  border-radius:3px !important;
  color:var(--brand-2) !important;
  padding:2px 6px;font-size:12.5px;
}
/* 各页面自定义浅色提示条 */
html[data-theme="sass"] .total-bar,
html[data-theme="sass"] .tip-box,
html[data-theme="sass"] .balance-bar,
html[data-theme="sass"] .balance-tip,
html[data-theme="sass"] .tip-text,
html[data-theme="sass"] .pay-modal .tip-text{
  background:var(--brand-soft) !important;
  border:1px solid var(--line) !important;
  border-left:3px solid var(--brand-1) !important;
  border-radius:var(--r-sm) !important;
  padding:10px 14px !important;
  color:var(--brand-3) !important;
}
html[data-theme="sass"] .balance-bar,
html[data-theme="sass"] .balance-tip,
html[data-theme="sass"] .tip-text,
html[data-theme="sass"] .pay-modal .tip-text{
  background:var(--warn-soft) !important;
  border-left-color:var(--warn) !important;
  color:#a96806 !important;
}
html[data-theme="sass"] .total-bar strong,
html[data-theme="sass"] .tip-box strong,
html[data-theme="sass"] .balance-bar strong{color:var(--brand-2) !important;}
html[data-theme="sass"] [id="resultBox"],
html[data-theme="sass"] .result-box{
  background:#f7f9fc;border:1px solid var(--line);border-radius:var(--r-md);padding:16px;text-align:left;
}
html[data-theme="sass"] [id="resultTip"],
html[data-theme="sass"] .result-tip{color:var(--brand-2) !important;font-weight:600;}
html[data-theme="sass"] .pkg-card,
html[data-theme="sass"] .spider-card{
  background:#fff !important;
  border:1px solid var(--line) !important;
  border-radius:var(--r-md) !important;
  padding:20px !important;
  box-shadow:var(--sh-1) !important;
  transition:transform .18s,box-shadow .18s,border-color .18s;
}
html[data-theme="sass"] .pkg-card:hover,
html[data-theme="sass"] .spider-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--sh-2) !important;
  border-color:#c2d5f7 !important;
}
html[data-theme="sass"] .pkg-card::before{
  content:'';position:absolute;left:0;right:0;top:0;height:3px;
  background:linear-gradient(90deg,var(--brand-1),#8fb8fb);
}
html[data-theme="sass"] .spider-card h3{
  color:var(--ink);font-size:14px;font-weight:700;
  display:flex;align-items:center;gap:8px;margin-bottom:12px;
}
html[data-theme="sass"] .spider-card h3::before{
  width:7px;height:7px;border-radius:50%;
  background:var(--brand-1);box-shadow:0 0 0 3px var(--brand-soft);
}
html[data-theme="sass"] .stat-row{gap:14px;margin-bottom:14px;}
html[data-theme="sass"] .pay-disabled{color:var(--muted-2) !important;cursor:not-allowed;}
html[data-theme="sass"] .pay-link{color:var(--brand-2);cursor:pointer;font-weight:600;border-bottom:1px dashed var(--brand-1);}
html[data-theme="sass"] .pay-modal{text-align:center;line-height:2;}
html[data-theme="sass"] .pay-modal img{border-radius:var(--r-md);box-shadow:var(--sh-1);}
html[data-theme="sass"] strong[style*="color:#2f6fed"],
html[data-theme="sass"] strong[style*="color: #2f6fed"]{color:var(--brand-2) !important;}

/* ============ 分页 ============ */
html[data-theme="sass"] .layui-laypage{margin:8px 0 2px !important;}
html[data-theme="sass"] .layui-laypage a,
html[data-theme="sass"] .layui-laypage span{
  background:#fff !important;
  color:var(--ink-2) !important;
  border:1px solid var(--line) !important;
  border-radius:var(--r-sm) !important;
  margin:0 2px !important;
  font-family:var(--font) !important;
}
html[data-theme="sass"] .layui-laypage .layui-laypage-curr .layui-laypage-em{
  background:var(--brand-1) !important;border-radius:var(--r-sm) !important;
}
html[data-theme="sass"] .layui-laypage a:hover{color:var(--brand-2) !important;border-color:#9dbdf7 !important;}
html[data-theme="sass"] .layui-laypage-count,
html[data-theme="sass"] .layui-laypage-limits,
html[data-theme="sass"] .layui-laypage-skip{color:var(--muted) !important;}

/* ============ layer 弹窗 ============ */
html[data-theme="sass"] .layui-layer{
  border-radius:var(--r-md) !important;overflow:hidden;
  box-shadow:var(--sh-2) !important;
}
html[data-theme="sass"] .layui-layer-title{
  background:linear-gradient(90deg,#ecf2ff,#f8fafc) !important;
  color:var(--ink) !important;font-weight:700;font-size:14px !important;
  border-bottom:1px solid var(--line) !important;
}
html[data-theme="sass"] .layui-layer-content{color:var(--ink-2) !important;}
html[data-theme="sass"] .layui-layer-btn .layui-layer-btn0{
  background:var(--brand-1) !important;border-color:var(--brand-1) !important;border-radius:var(--r-sm) !important;
}

/* ============ 悬浮工具栏 / 提示 / 二维码 ============ */
html[data-theme="sass"] .float-toolbar{right:20px;bottom:26px;gap:10px;z-index:9999;}
html[data-theme="sass"] .float-btn{
  width:46px;height:46px;border-radius:12px;
  background:#fff !important;
  color:var(--brand-1) !important;
  border:1px solid var(--line) !important;
  font-size:18px;cursor:pointer;
  box-shadow:var(--sh-1) !important;
  transition:transform .2s,box-shadow .2s;
  display:flex;align-items:center;justify-content:center;
}
html[data-theme="sass"] .float-btn:hover{
  transform:translateY(-3px);
  box-shadow:var(--sh-2) !important;
}
html[data-theme="sass"] .float-btn svg{width:22px;height:22px;}
html[data-theme="sass"] .float-btn.btn-qrcode path,
html[data-theme="sass"] .float-btn.btn-wechat path,
html[data-theme="sass"] .float-btn.btn-top path{fill:var(--brand-1) !important;}
html[data-theme="sass"] .float-btn.btn-wechat path{fill:var(--ok) !important;}
html[data-theme="sass"] .float-btn.btn-top path{fill:var(--muted) !important;}
html[data-theme="sass"] .qrcode-mask{background:rgba(24,34,58,.55) !important;backdrop-filter:blur(4px);}
html[data-theme="sass"] .qrcode-wrap{
  background:#fff !important;padding:24px !important;border-radius:var(--r-md) !important;
  box-shadow:var(--sh-2);max-width:300px;
}
html[data-theme="sass"] .qrcode-wrap img{border-radius:var(--r-sm);}
html[data-theme="sass"] .qrcode-tip{color:var(--ink) !important;font-weight:700;font-size:14px;}
html[data-theme="sass"] .qrcode-close{
  background:var(--brand-1) !important;border-radius:var(--r-sm) !important;padding:8px 20px !important;
  box-shadow:var(--sh-brand);color:#fff !important;border:none !important;
}
html[data-theme="sass"] .toast{
  background:rgba(24,34,58,.92) !important;color:#fff !important;
  border-radius:var(--r-sm) !important;padding:11px 22px !important;font-size:13px;
  box-shadow:var(--sh-2);
}

/* ============ 登录 / 注册 / 找回 / 改密 ============ */
html[data-theme="sass"] body:has(.login-card),
html[data-theme="sass"] body:has(.login-box){
  background:linear-gradient(135deg,#ecf2ff 0%,#f8fafc 50%,#dfe9ff 100%) !important;
  min-height:100vh;
}
html[data-theme="sass"] .login-card,
html[data-theme="sass"] .login-box{
  background:#fff !important;
  border:1px solid var(--line) !important;
  border-radius:var(--r-lg) !important;
  padding:34px 32px !important;
  box-shadow:0 16px 40px -20px rgba(24,34,58,.28) !important;
  width:100%;max-width:420px;
  color:var(--ink-2);
}
html[data-theme="sass"] .login-box{margin:100px auto;}
html[data-theme="sass"] .site-title{
  display:flex;align-items:center;gap:10px;justify-content:center;
  color:var(--ink) !important;font-weight:700;letter-spacing:.2px;
}
html[data-theme="sass"] .site-title .logo-icon,
html[data-theme="sass"] .login-box::before{
  background:linear-gradient(135deg,#2f6fed,#2558c5) !important;
  border-radius:8px !important;
  box-shadow:var(--sh-brand);
  color:#fff !important;
  font-size:0;
}
html[data-theme="sass"] .site-title .logo-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;}
html[data-theme="sass"] .site-title .logo-icon::before{
  content:"HT";font-size:11px;font-weight:800;line-height:1;color:#fff;
}
html[data-theme="sass"] .login-box::before{
  content:"HT";display:flex;align-items:center;justify-content:center;
  width:42px;height:42px;margin:0 auto 14px;
  font-size:11px;font-weight:800;line-height:1;
}
html[data-theme="sass"] .login-title{
  text-align:center;font-weight:700 !important;color:var(--ink) !important;
  margin-bottom:22px !important;
}
html[data-theme="sass"] .login-box .login-title{font-size:19px;margin-bottom:20px !important;}
html[data-theme="sass"] .form-input,
html[data-theme="sass"] .login-box .layui-input{
  height:42px !important;
  border-radius:var(--r-sm) !important;
  background:#fff !important;
  border:1px solid #e1e7f0 !important;
  color:var(--ink) !important;
}
html[data-theme="sass"] .form-input:focus,
html[data-theme="sass"] .login-box .layui-input:focus{
  border-color:var(--brand-1) !important;
  box-shadow:0 0 0 3px rgba(47,111,237,.12) !important;
}
html[data-theme="sass"] .btn-primary{
  background:linear-gradient(180deg,#4a8bff,#2f6fed) !important;
  border:none !important;color:#fff !important;
  height:42px !important;font-size:14px;font-weight:700;
  box-shadow:var(--sh-brand);
  transition:all .2s;
}
html[data-theme="sass"] .btn-primary:hover{
  background:linear-gradient(180deg,#2f6fed,#1f4fb0) !important;
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(47,111,237,.32);
}
html[data-theme="sass"] .btn-primary:active{transform:translateY(0);}
html[data-theme="sass"] .login-box .layui-btn-fluid{height:42px;line-height:42px;font-size:14px;font-weight:700;}
html[data-theme="sass"] .captcha-img{
  height:42px !important;border-radius:var(--r-sm) !important;border:1px solid var(--line) !important;
}
html[data-theme="sass"] .login-box img[src*="captcha"]{
  height:42px !important;border:1px solid var(--line) !important;border-radius:var(--r-sm) !important;
}
html[data-theme="sass"] .login-footer{margin-top:14px;text-align:center;color:var(--muted);}
html[data-theme="sass"] .login-footer a{color:var(--brand-2) !important;font-weight:600;}

/* ============ 后台风格切换器在绿色下的适配 ============ */
html[data-theme="sass"] .ui-theme-btn{
  border:1px solid rgba(255,255,255,.45) !important;
  background:rgba(255,255,255,.18) !important;
  color:#fff !important;
}
html[data-theme="sass"] .ui-theme-btn:hover{
  background:rgba(255,255,255,.30) !important;
}

/* ============ 动画与响应式 ============ */
html[data-theme="sass"] .stat-item::before{animation:none;}
@media(max-width:992px){
  html[data-theme="sass"] .stat-box{grid-template-columns:repeat(2,1fr);}
  html[data-theme="sass"] .stat-row{grid-template-columns:1fr;}
}
@media(max-width:768px){
  html[data-theme="sass"] .header{height:50px;padding:0 14px;}
  html[data-theme="sass"] .header h2{font-size:13px;padding-left:34px;}
  html[data-theme="sass"] .header h2::before{width:24px;height:24px;font-size:9px;}
  html[data-theme="sass"] .container{min-height:calc(100vh - 50px);}
  html[data-theme="sass"] .sidebar{
    width:100%;height:auto;position:static;top:auto;
    display:flex;flex-wrap:wrap;gap:4px;
    padding:8px 10px;border-right:none;border-bottom:1px solid rgba(255,255,255,.2);
  }
  html[data-theme="sass"] .sidebar::before{width:100%;height:44px;margin:0 0 6px;}
  html[data-theme="sass"] .sidebar>p,
  html[data-theme="sass"] .sidebar p[style]{
    width:100%;height:26px !important;line-height:26px !important;
    margin:4px 0 0 !important;padding:0 8px !important;
  }
  html[data-theme="sass"] .sidebar a{padding:7px 10px;font-size:12px;}
  html[data-theme="sass"] .main{padding:14px 12px 32px;}
  html[data-theme="sass"] .stat-box{gap:10px;}
  html[data-theme="sass"] .stat-item{padding:14px 14px 14px 54px !important;}
  html[data-theme="sass"] .stat-item::before{left:14px;top:14px;width:26px;height:26px;}
  html[data-theme="sass"] .stat-item::after{left:21px;top:21px;width:12px;height:12px;}
  html[data-theme="sass"] .content{padding:14px !important;}
  html[data-theme="sass"] .layui-table th,
  html[data-theme="sass"] .layui-table td{padding:9px 10px !important;font-size:12px !important;}
  html[data-theme="sass"] .login-card,
  html[data-theme="sass"] .login-box{padding:26px 22px !important;border-radius:10px !important;}
  html[data-theme="sass"] .login-box{margin:50px auto;}
}
@media(max-width:480px){
  html[data-theme="sass"] .stat-box{grid-template-columns:1fr 1fr;gap:8px;}
  html[data-theme="sass"] .stat-item .num{font-size:19px;}
}


/* ============================================================
 * sass 专属覆盖：白色顶栏 + 深黑侧栏选中态（低特异性覆盖已有规则）
 * ============================================================ */
/* --- 顶栏改为纯白 + 深墨字 + 细底线 --- */
html[data-theme="sass"] .header{
  height:52px !important;
  padding:0 20px !important;
  background:#ffffff !important;
  border-bottom:1px solid var(--line) !important;
  box-shadow:0 1px 3px rgba(24,34,58,.04) !important;
  color:var(--ink) !important;
}
html[data-theme="sass"] .header h2{
  color:var(--ink) !important;
  font-size:15px;font-weight:700;
}
/* Logo 徽章：蓝底白字（白顶栏下反转） */
html[data-theme="sass"] .header h2::before{
  background:linear-gradient(135deg,#4a8bff,#2f6fed) !important;
  color:#fff !important;
  box-shadow:0 2px 6px rgba(47,111,237,.32) !important;
  border-radius:6px !important;
}
/* 顶栏右侧欢迎语与图标 */
html[data-theme="sass"] .header>div{
  color:var(--ink-2) !important;
}
html[data-theme="sass"] .header>div::before{
  background-color:#2f6fed !important;
  border-radius:50% !important;
}
/* 退出登录按钮：白底浅框深字 */
html[data-theme="sass"] .header a{
  background:#f5f8ff !important;
  color:#2558c5 !important;
  border:1px solid #d7e3fb !important;
  font-weight:600;
}
html[data-theme="sass"] .header a:hover{
  background:#eaf1ff !important;
  color:#1b4496 !important;
  border-color:#b9d0f7 !important;
}
/* 风格切换按钮：白顶栏下深字浅框 */
html[data-theme="sass"] .ui-theme-btn{
  border:1px solid #d7e3fb !important;
  background:#f5f8ff !important;
  color:#2558c5 !important;
}
html[data-theme="sass"] .ui-theme-btn:hover{
  background:#eaf1ff !important;
}

/* --- 布局高度随顶栏 52px 调整 --- */
html[data-theme="sass"] .container{min-height:calc(100vh - 52px) !important;}
html[data-theme="sass"] .sidebar{
  top:52px !important;
  height:calc(100vh - 52px) !important;
  background:#17171b !important;
}

/* --- 侧栏选中项：深灰底 + 蓝色左条 + 白字 --- */
html[data-theme="sass"] .sidebar a.active,
html[data-theme="sass"] .sidebar a[class="active"]{
  background:#2b2b33 !important;
  color:#fff !important;
  box-shadow:inset 3px 0 0 #3b82f6 !important;
  border-radius:6px !important;
}
html[data-theme="sass"] .sidebar a.active::before,
html[data-theme="sass"] .sidebar a[class="active"]::before{
  color:#5b9cff !important;opacity:1 !important;
}
html[data-theme="sass"] .sidebar a:hover{
  background:#24242b !important;color:#fff !important;
}
/* 侧栏顶部装饰块：深灰卡片 */
html[data-theme="sass"] .sidebar::before{
  background-color:#24242b !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%233b82f6' opacity='.95'/%3E%3Ccircle cx='12' cy='9' r='3.2' fill='%23ffffff'/%3E%3Cpath d='M5.5 20a6.5 6.5 0 0 1 13 0' fill='%23ffffff'/%3E%3C/svg%3E") !important;
}

/* --- 内容卡片：更大圆角 + 更柔阴影（贴合 SaaS 卡片） --- */
html[data-theme="sass"] .content,
html[data-theme="sass"] .stat-item,
html[data-theme="sass"] .layui-table,
html[data-theme="sass"] .pkg-card,
html[data-theme="sass"] .spider-card{
  border-radius:14px !important;
  box-shadow:0 4px 18px -10px rgba(24,34,58,.16) !important;
}
html[data-theme="sass"] .layui-table{border-radius:12px !important;}

/* --- 登录/注册背景：浅灰蓝渐变 --- */
html[data-theme="sass"] body:has(.login-card),
html[data-theme="sass"] body:has(.login-box){
  background:linear-gradient(135deg,#eef2fa 0%,#f8fafc 52%,#e4ebf7 100%) !important;
}
