/* ================================================================
   MNBT 2026 全站视觉统一层
   只统一“看得见”的组件：卡片标题栏、按钮、表格、表单、用户中心面板
   不改变页面业务结构和后台菜单
   ================================================================ */
:root{
  --mn-g-blue:#5b21b6;
  --mn-g-blue-2:#6366f1;
  --mn-g-cyan:#34d399;
  --mn-g-text:#0f172a;
  --mn-g-text-2:#334155;
  --mn-g-muted:#64748b;
  --mn-g-border:#e2e8f0;
  --mn-g-soft:#f8fafc;
  --mn-g-radius:16px;
  --mn-g-shadow:0 8px 24px -18px rgba(15,23,42,.28);
  --mn-g-font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}

/* ---------- 卡片 ---------- */
html body .card{
  border:1px solid var(--mn-g-border)!important;
  border-radius:var(--mn-g-radius)!important;
  background:#fff!important;
  box-shadow:var(--mn-g-shadow)!important;
  overflow:hidden;
}
html body .card-header{
  background:linear-gradient(135deg,var(--mn-g-blue) 0%,var(--mn-g-blue-2) 100%)!important;
  border-bottom:0!important;
  padding:13px 18px!important;
  color:#fff!important;
  border-radius:calc(var(--mn-g-radius) - 1px) calc(var(--mn-g-radius) - 1px) 0 0!important;
}
html body .card-header .card-title,
html body .card-header h1,
html body .card-header h2,
html body .card-header h3,
html body .card-header h4,
html body .card-header h5,
html body .card-header h6,
html body .card-header .h4,
html body .card-header .h5{
  color:#fff!important;
  font-weight:800!important;
  font-size:15px!important;
  margin:0!important;
  letter-spacing:-.01em;
}
html body .card-title::before{
  content:""!important;
  display:inline-block!important;
  width:4px;height:15px;
  border-radius:99px;
  background:rgba(255,255,255,.9)!important;
  margin-right:8px;
  vertical-align:middle;
}
html body .card-header small,
html body .card-header .text-muted,
html body .card-header .text-secondary,
html body .card-header span:not(.badge):not(.btn){
  color:rgba(255,255,255,.82)!important;
}
html body .card-header a:not(.btn){
  color:#fff!important;
  text-decoration:none!important;
}
html body .card-header .btn-primary{
  background:#fff!important;
  border-color:#fff!important;
  color:var(--mn-g-blue)!important;
}
html body .card-header .btn-light,
html body .card-header .btn-default,
html body .card-header .btn-outline-light{
  background:rgba(255,255,255,.15)!important;
  border-color:rgba(255,255,255,.32)!important;
  color:#fff!important;
}
html body .card-body{
  padding:17px 18px!important;
  color:var(--mn-g-text-2);
}
html body .card-footer{
  background:#fbfdff!important;
  border-top:1px solid var(--mn-g-border)!important;
  padding:12px 18px!important;
}

/* ---------- 按钮 ---------- */
html body .btn{
  border-radius:10px!important;
  font-family:var(--mn-g-font)!important;
  font-weight:700!important;
  font-size:13px!important;
  padding:8px 15px!important;
  border:1px solid transparent!important;
  box-shadow:none!important;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease!important;
}
html body .btn:hover{transform:translateY(-1px);}
html body .btn:active{transform:translateY(0);}
html body .btn-primary{background:linear-gradient(135deg,var(--mn-g-blue-2),var(--mn-g-blue))!important;border-color:var(--mn-g-blue-2)!important;color:#fff!important;}
html body .btn-success{background:linear-gradient(135deg,#10b981,#059669)!important;border-color:#059669!important;color:#fff!important;}
html body .btn-warning{background:linear-gradient(135deg,#fbbf24,#f59e0b)!important;border-color:#f59e0b!important;color:#fff!important;}
html body .btn-danger{background:linear-gradient(135deg,#f87171,#ef4444)!important;border-color:#ef4444!important;color:#fff!important;}
html body .btn-info{background:linear-gradient(135deg,#2dd4bf,#34d399)!important;border-color:#34d399!important;color:#fff!important;}
html body .btn-light,
html body .btn-default,
html body .btn-secondary{
  background:#fff!important;
  border-color:var(--mn-g-border)!important;
  color:var(--mn-g-text-2)!important;
}
html body .btn-light:hover,
html body .btn-default:hover{background:#f5f3ff!important;border-color:#ddd6fe!important;color:var(--mn-g-blue-2)!important;}
html body .btn-outline-primary{border-color:var(--mn-g-blue-2)!important;color:var(--mn-g-blue-2)!important;background:transparent!important;}
html body .btn-outline-primary:hover{background:var(--mn-g-blue-2)!important;color:#fff!important;}
html body .btn-sm{border-radius:9px!important;padding:6px 12px!important;font-size:12px!important;}
html body .btn-xs{border-radius:99px!important;padding:4px 10px!important;font-size:11px!important;}

/* ---------- 页面自定义按钮（用户中心 / 域名 / 主机） ---------- */
html body .uc-btn,
html body .dm-btn,
html body .mp-btn,
html body .mini-btn{
  border-radius:10px!important;
  font-family:var(--mn-g-font)!important;
  font-weight:700!important;
  font-size:13px!important;
  padding:8px 14px!important;
  border:1px solid transparent!important;
  text-decoration:none!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:6px;
  line-height:1.3!important;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease!important;
}
html body .uc-btn.primary,
html body .dm-btn.primary,
html body .mp-btn.primary{background:linear-gradient(135deg,var(--mn-g-blue-2),var(--mn-g-blue))!important;border-color:var(--mn-g-blue-2)!important;color:#fff!important;}
html body .uc-btn.white,
html body .dm-btn.white,
html body .mp-btn.white{background:#fff!important;border-color:#fff!important;color:var(--mn-g-blue-2)!important;}
html body .uc-btn.glass,
html body .dm-btn.light,
html body .mp-btn.glass{background:rgba(255,255,255,.16)!important;border-color:rgba(255,255,255,.32)!important;color:#fff!important;}
html body .uc-btn.ghost,
html body .dm-btn.ghost,
html body .mp-btn.ghost{background:#fff!important;border-color:var(--mn-g-border)!important;color:var(--mn-g-text-2)!important;}
html body .uc-btn.ghost:hover,
html body .dm-btn.ghost:hover,
html body .mp-btn.ghost:hover{background:#f5f3ff!important;border-color:#ddd6fe!important;color:var(--mn-g-blue-2)!important;}
html body .dm-btn.danger{background:#fff1f2!important;border-color:#fecdd3!important;color:#dc2626!important;}
html body .mini-btn{padding:4px 9px!important;font-size:11px!important;font-weight:700!important;background:#fff!important;border-color:var(--mn-g-border)!important;color:var(--mn-g-text-2)!important;}
html body .mini-btn:hover{background:#f5f3ff!important;border-color:#ddd6fe!important;color:var(--mn-g-blue-2)!important;}

/* ---------- 表格 ---------- */
html body .table{
  margin-bottom:0!important;
  color:var(--mn-g-text-2)!important;
  border-color:var(--mn-g-border)!important;
}
html body .table th{
  background:#f8fafc!important;
  color:var(--mn-g-muted)!important;
  font-size:12px!important;
  font-weight:700!important;
  border-bottom:1px solid var(--mn-g-border)!important;
  padding:10px 13px!important;
  white-space:nowrap;
}
html body .table td{
  border-bottom:1px solid #f1f5f9!important;
  padding:10px 13px!important;
  font-size:13px!important;
  vertical-align:middle!important;
}
html body .table-hover tbody tr:hover td{background:#f8fafc!important;}

/* ---------- 表单 ---------- */
html body .form-control,
html body input[type="text"],
html body input[type="password"],
html body input[type="email"],
html body input[type="number"],
html body input[type="search"],
html body select,
html body textarea{
  border:1px solid var(--mn-g-border)!important;
  border-radius:10px!important;
  box-shadow:none!important;
  color:var(--mn-g-text)!important;
  background:#fff!important;
  font-family:var(--mn-g-font)!important;
}
html body .form-control:focus,
html body input:focus,
html body select:focus,
html body textarea:focus{
  border-color:var(--mn-g-blue-2)!important;
  box-shadow:0 0 0 3px rgba(99,102,241,.10)!important;
}
html body .form-group label,
html body label{color:var(--mn-g-text-2);font-weight:700;}

/* ---------- 用户中心 / 域名 / 主机面板标题栏 ---------- */
html body .uc-panel,
html body .mp-panel,
html body .dm-panel{
  border:1px solid var(--mn-g-border)!important;
  border-radius:var(--mn-g-radius)!important;
  box-shadow:var(--mn-g-shadow)!important;
  overflow:hidden;
  margin-bottom:14px!important;
}
html body .uc-panel .ph,
html body .mp-panel .ph,
html body .dm-panel .ph{
  background:linear-gradient(135deg,var(--mn-g-blue) 0%,var(--mn-g-blue-2) 100%)!important;
  border-bottom:0!important;
  color:#fff!important;
  padding:13px 18px!important;
}
html body .uc-panel .ph h3,
html body .mp-panel .ph h3,
html body .dm-panel .ph h3{color:#fff!important;font-size:15px!important;font-weight:800!important;margin:0!important;}
html body .uc-panel .ph .tip,
html body .mp-panel .ph .tip,
html body .dm-panel .ph .tip,
html body .dm-panel .ph span{color:rgba(255,255,255,.82)!important;}
html body .uc-panel .ph .uc-btn.ghost,
html body .dm-panel .ph .uc-btn.ghost{
  background:rgba(255,255,255,.15)!important;
  border-color:rgba(255,255,255,.32)!important;
  color:#fff!important;
}

/* 用户中心顶部与统计卡：收紧留白，减少“堆内容”的感觉 */
html body .uc-wrap{padding:14px 16px 46px!important;max-width:1200px!important;}
html body .uc-hero{padding:18px 20px!important;border-radius:16px!important;margin-bottom:12px!important;}
html body .uc-hero h2{font-size:20px!important;margin-bottom:4px!important;}
html body .uc-hero p{font-size:12px!important;line-height:1.65!important;}
html body .uc-stats{gap:10px!important;margin-bottom:10px!important;}
html body .uc-card{padding:13px 15px!important;border-radius:13px!important;}
html body .uc-card .num{font-size:22px!important;margin-top:3px!important;}
html body .uc-card .sub{font-size:11px!important;margin-top:2px!important;}
html body .uc-nav{gap:6px!important;margin-bottom:12px!important;}
html body .uc-nav a{padding:7px 13px!important;font-size:12px!important;border-radius:9px!important;background:#fff!important;border:1px solid var(--mn-g-border)!important;color:var(--mn-g-text-2)!important;font-weight:700!important;}
html body .uc-nav a:hover{background:#f5f3ff!important;border-color:#ddd6fe!important;color:var(--mn-g-blue-2)!important;}
html body .uc-table th{padding:10px 12px!important;}
html body .uc-table td{padding:10px 12px!important;}
html body .dm-stats{gap:10px!important;padding:12px 16px 0!important;}
html body .dm-card{padding:12px 14px!important;border-radius:12px!important;}
html body .dm-card .num{font-size:20px!important;}
html body .dm-table th{padding:10px 13px!important;}
html body .dm-table td{padding:10px 13px!important;}

/* ---------- 弹窗 ---------- */
html body .modal-content{border:0!important;border-radius:16px!important;box-shadow:0 24px 60px -24px rgba(15,23,42,.45)!important;overflow:hidden;}
html body .modal-header{background:linear-gradient(135deg,var(--mn-g-blue),var(--mn-g-blue-2))!important;color:#fff!important;border-bottom:0!important;padding:14px 18px!important;}
html body .modal-title{color:#fff!important;font-weight:800!important;}
html body .modal-header .close{color:#fff!important;text-shadow:none!important;opacity:.9;}
html body .modal-body{padding:18px!important;}
html body .modal-footer{border-top:1px solid var(--mn-g-border)!important;padding:12px 18px!important;}

/* ---------- 小屏收口 ---------- */
@media (max-width:768px){
  html body .card-header{padding:12px 14px!important;}
  html body .card-body{padding:14px!important;}
  html body .uc-wrap{padding:12px 12px 40px!important;}
  html body .uc-hero{padding:16px!important;}
  html body .uc-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html body .dm-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html body .table th,html body .table td{padding:9px 10px!important;font-size:12px!important;}
}

/* ================================================================
   卡片标题栏统一（用户端 / 后台通用）
   默认：蓝底 + 白字 / 白图标
   带按钮的标题栏：白底 + 蓝字 / 蓝图标，按钮统一蓝底白字
   ================================================================ */
html body .card.card > .card-header,
html body .card.card > .card-header.bg-info,
html body .card.card > .card-header.bg-primary{
    background:linear-gradient(135deg,var(--mn-g-blue) 0%,var(--mn-g-blue-2) 100%)!important;
    border-bottom:0!important;
    color:#fff!important;
}

html body .card.card > .card-header > .card-title,
html body .card.card > .card-header > h1,
html body .card.card > .card-header > h2,
html body .card.card > .card-header > h3,
html body .card.card > .card-header > h4,
html body .card.card > .card-header > h5,
html body .card.card > .card-header > h6,
html body .card.card > .card-header .card-title,
html body .card.card > .card-header .h1,
html body .card.card > .card-header .h2,
html body .card.card > .card-header .h3,
html body .card.card > .card-header .h4,
html body .card.card > .card-header .h5,
html body .card.card > .card-header .h6{
    color:#fff!important;
    font-weight:800!important;
}

html body .card.card > .card-header > .card-title::before,
html body .card.card > .card-header .card-title::before,
html body .card.card > .card-header > h4::before{
    background:#fff!important;
}

html body .card.card > .card-header small,
html body .card.card > .card-header .text-muted,
html body .card.card > .card-header .text-secondary,
html body .card.card > .card-header span:not(.badge):not(.btn),
html body .card.card > .card-header a:not(.btn),
html body .card.card > .card-header .mdi,
html body .card.card > .card-header .mdi::before{
    color:#fff!important;
}

html body .card.card > .card-header:has(.btn){
    background:#fff!important;
    border-bottom:1px solid #ddd6fe!important;
    color:var(--mn-g-blue)!important;
}

html body .card.card > .card-header:has(.btn) > .card-title,
html body .card.card > .card-header:has(.btn) > h1,
html body .card.card > .card-header:has(.btn) > h2,
html body .card.card > .card-header:has(.btn) > h3,
html body .card.card > .card-header:has(.btn) > h4,
html body .card.card > .card-header:has(.btn) > h5,
html body .card.card > .card-header:has(.btn) > h6,
html body .card.card > .card-header:has(.btn) .card-title,
html body .card.card > .card-header:has(.btn) span:not(.badge):not(.btn),
html body .card.card > .card-header:has(.btn) a:not(.btn),
html body .card.card > .card-header:has(.btn) .mdi,
html body .card.card > .card-header:has(.btn) .mdi::before{
    color:var(--mn-g-blue)!important;
}

html body .card.card > .card-header:has(.btn) > .card-title::before,
html body .card.card > .card-header:has(.btn) .card-title::before,
html body .card.card > .card-header:has(.btn) > h4::before{
    background:var(--mn-g-blue)!important;
}

html body .card.card > .card-header:has(.btn) .btn,
html body .card.card > .card-header:has(.btn) a.btn{
    background:linear-gradient(135deg,var(--mn-g-blue-2),var(--mn-g-blue))!important;
    border-color:var(--mn-g-blue-2)!important;
    color:#fff!important;
    box-shadow:none!important;
}
html body .card.card > .card-header:has(.btn) .btn:hover,
html body .card.card > .card-header:has(.btn) a.btn:hover{
    background:linear-gradient(135deg,#8b5cf6,#5b21b6)!important;
    border-color:#5b21b6!important;
    color:#fff!important;
}

/* 带按钮标题栏里的按钮内部文字/图标保持白色，避免蓝底蓝字 */
html body .card.card > .card-header:has(.btn) .btn .mdi,
html body .card.card > .card-header:has(.btn) .btn i,
html body .card.card > .card-header:has(.btn) .btn span,
html body .card.card > .card-header:has(.btn) .btn small{
    color:#fff!important;
}
