:root {
  --fluent-font: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --fluent-brand: #0f6cbd;
  --fluent-brand-hover: #115ea3;
  --fluent-brand-pressed: #0f548c;
  --fluent-brand-subtle: #ebf3fc;
  --fluent-brand-tint: rgba(15,108,189,.12);
  --fluent-success: #107c10;
  --fluent-warning: #fde300;
  --fluent-danger: #d13438;
  --fluent-canvas: #f3f6fb;
  --fluent-mica: rgba(246,248,252,.82);
  --fluent-layer: rgba(255,255,255,.78);
  --fluent-card: rgba(255,255,255,.92);
  --fluent-card-solid: #ffffff;
  --fluent-text: #242424;
  --fluent-text-secondary: #616161;
  --fluent-text-tertiary: #8a8886;
  --fluent-stroke: rgba(0,0,0,.12);
  --fluent-stroke-subtle: rgba(0,0,0,.07);
  --fluent-radius-small: 6px;
  --fluent-radius: 10px;
  --fluent-radius-large: 16px;
  --fluent-shadow-2: 0 1px 2px rgba(0,0,0,.08);
  --fluent-shadow-8: 0 4px 12px rgba(0,0,0,.10);
  --fluent-shadow-16: 0 10px 30px rgba(0,0,0,.12);
  --fluent-focus: 0 0 0 3px rgba(15,108,189,.24);
}
html, body {
  font-family: var(--fluent-font) !important;
  color: var(--fluent-text);
  background: radial-gradient(circle at 12% -8%, rgba(15,108,189,.15), transparent 32%), radial-gradient(circle at 92% 0%, rgba(91,95,199,.13), transparent 30%), linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.48) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .45;
  mask-image: linear-gradient(180deg, #000 0%, transparent 74%);
  z-index: -1;
}
a, .text-primary, .yunyoo-c-primary { color: var(--fluent-brand) !important; }
a:hover { color: var(--fluent-brand-hover) !important; text-decoration: none; }
#page-topbar {
  background: rgba(250,251,255,.86) !important;
  border-bottom: 1px solid rgba(15,108,189,.08) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.62) inset, var(--fluent-shadow-2) !important;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.navbar-header { min-height: 64px !important; padding: 0 24px !important; }
.navbar-brand-box {
  background: transparent !important;
  border-right: 1px solid var(--fluent-stroke-subtle);
  box-shadow: none !important;
}
.logo-lg img { max-width: 150px; height: auto !important; object-fit: contain; }
.header-item, .noti-icon, #vertical-menu-btn {
  color: var(--fluent-text) !important;
  border-radius: var(--fluent-radius) !important;
  min-height: 40px !important;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.header-item:hover, .noti-icon:hover, #vertical-menu-btn:hover {
  background: rgba(15,108,189,.08) !important;
  box-shadow: inset 0 0 0 1px rgba(15,108,189,.08);
}
.dropdown-menu {
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: var(--fluent-shadow-16) !important;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  padding: 8px !important;
}
.dropdown-item {
  border-radius: 8px !important;
  padding: 9px 12px !important;
  color: var(--fluent-text) !important;
}
.dropdown-item:hover, .dropdown-item:focus { background: rgba(15,108,189,.08) !important; color: var(--fluent-brand) !important; }
.vertical-menu {
  background: rgba(255,255,255,.74) !important;
  border-right: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 1px 0 0 rgba(255,255,255,.55) inset !important;
  backdrop-filter: blur(30px) saturate(155%);
  -webkit-backdrop-filter: blur(30px) saturate(155%);
}
#sidebar-menu { padding: 16px 12px !important; }
#sidebar-menu ul li a {
  color: #1e1e1e !important;
  font-weight: 500 !important;
  border-radius: 10px !important;
  min-height: 42px;
  margin: 3px 0;
  padding: 10px 14px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
#sidebar-menu ul li a i { color: #3d3d3d !important; font-size: 19px !important; min-width: 20px; text-align: center; }
#sidebar-menu ul li a:hover, #sidebar-menu ul li.mm-active > a, #sidebar-menu ul li a.active {
  background: rgba(15,108,189,.10) !important;
  color: var(--fluent-brand) !important;
}
#sidebar-menu ul li a:hover i, #sidebar-menu ul li.mm-active > a i, #sidebar-menu ul li a.active i { color: var(--fluent-brand) !important; }
#sidebar-menu .sub-menu { padding-left: 10px !important; }
#sidebar-menu .sub-menu li a { min-height: 36px; padding-left: 38px !important; font-size: 13px !important; }
.main-content { background: transparent !important; }
.page-content { padding-top: 88px !important; background: transparent !important; }
.container-fluid { max-width: 1380px; }
.page-title-box, .breadcrumb, .page-title-right {
  background: transparent !important;
}
.page-title-box h4, h1, h2, h3, h4, h5, h6 {
  color: var(--fluent-text);
  letter-spacing: -.018em;
}
.card, .modal-content, .table-responsive, .timeline-item, .ststus-box, .pricing-box, .security-info, .custom-accordion .card {
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: var(--fluent-radius-large) !important;
  background: var(--fluent-card) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.75) inset, var(--fluent-shadow-8) !important;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,.75) inset, 0 12px 30px rgba(0,0,0,.12) !important;
}
.card-header, .modal-header, .card-footer, .modal-footer {
  background: rgba(250,251,253,.76) !important;
  border-color: rgba(0,0,0,.07) !important;
}
.card-body { color: var(--fluent-text); }
.btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  min-height: 36px;
  border-width: 1px !important;
  box-shadow: none !important;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn:focus, .btn.focus, .form-control:focus, .custom-select:focus, .select2-container--default .select2-selection--single:focus { box-shadow: var(--fluent-focus) !important; }
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-info, .bg-primary, .bg-info {
  color: #fff !important;
  background: var(--fluent-brand) !important;
  border-color: var(--fluent-brand) !important;
}
.btn-primary:hover, .btn-info:hover, .btn-primary:focus, .btn-info:focus {
  background: var(--fluent-brand-hover) !important;
  border-color: var(--fluent-brand-hover) !important;
}
.btn-outline-primary {
  color: var(--fluent-brand) !important;
  border-color: rgba(15,108,189,.52) !important;
  background: rgba(255,255,255,.64) !important;
}
.btn-outline-primary:hover { color: #fff !important; background: var(--fluent-brand) !important; border-color: var(--fluent-brand) !important; }
.btn-secondary, .btn-light, .btn-default {
  color: var(--fluent-text) !important;
  background: rgba(255,255,255,.82) !important;
  border-color: rgba(0,0,0,.12) !important;
}
.btn-danger, .badge-danger { background: var(--fluent-danger) !important; border-color: var(--fluent-danger) !important; }
.btn-success, .badge-success { background: var(--fluent-success) !important; border-color: var(--fluent-success) !important; }
.form-control, .custom-select, .input-group-text, select.form-control, textarea.form-control, .select2-container--default .select2-selection--single {
  border-radius: 8px !important;
  border: 1px solid rgba(0,0,0,.13) !important;
  background-color: rgba(255,255,255,.86) !important;
  color: var(--fluent-text) !important;
  min-height: 38px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.06) !important;
}
.form-control:hover, .custom-select:hover, select.form-control:hover, textarea.form-control:hover { border-color: rgba(0,0,0,.22) !important; }
.form-control:focus, .custom-select:focus, select.form-control:focus, textarea.form-control:focus {
  border-color: var(--fluent-brand) !important;
  background-color: #fff !important;
}
.input-group-text { color: var(--fluent-text-secondary) !important; }
label, .form-control-label, .col-form-label { color: var(--fluent-text-secondary) !important; font-weight: 600 !important; }
.table {
  color: var(--fluent-text) !important;
  background: transparent !important;
  border-collapse: separate !important;
  border-spacing: 0;
}
.table thead th {
  color: var(--fluent-text-secondary) !important;
  background: rgba(246,248,251,.82) !important;
  border-bottom: 1px solid rgba(0,0,0,.08) !important;
  font-weight: 600 !important;
}
.table td, .table th { border-top-color: rgba(0,0,0,.06) !important; vertical-align: middle !important; }
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: rgba(15,108,189,.045) !important; }
.badge, .status, [class*="status-"] {
  border-radius: 999px !important;
  padding: .34rem .62rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
.badge-primary, .badge-soft-primary { color: var(--fluent-brand) !important; background: rgba(15,108,189,.12) !important; border: 1px solid rgba(15,108,189,.18); }
.badge-soft-danger, .status-suspended, .status-unpaid, .status-pending { color: #a4262c !important; background: #fde7e9 !important; border-color: #f3b8bd !important; }
.status-active, .status-paid, .status-success { color: #0e5f0e !important; background: #dff6dd !important; border-color: #b7dfb5 !important; }
.alert {
  border-radius: var(--fluent-radius-large) !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: var(--fluent-shadow-8) !important;
}
.alert-info { color: #004578 !important; background: #eff6fc !important; border-color: #cfe4fa !important; }
.alert-danger { color: #a4262c !important; background: #fde7e9 !important; border-color: #f3b8bd !important; }
.alert-success { color: #0e5f0e !important; background: #dff6dd !important; border-color: #b7dfb5 !important; }
.pagination .page-link {
  border-radius: 8px !important;
  margin: 0 3px;
  border-color: rgba(0,0,0,.10) !important;
  color: var(--fluent-text) !important;
  background: rgba(255,255,255,.82) !important;
}
.pagination .page-item.active .page-link { color: #fff !important; background: var(--fluent-brand) !important; border-color: var(--fluent-brand) !important; }
.user-center_header, img[data-avatar] {
  border-radius: 999px !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.92), var(--fluent-shadow-8) !important;
  object-fit: cover;
}
.bl-yellow, .bl-green, .bl-blue, .bl-global, .bl-hov {
  border-left: 0 !important;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,249,253,.90)) !important;
}
.bl-yellow::before, .bl-green::before, .bl-blue::before, .bl-global::before {
  content: "";
  display: block;
  width: 4px;
  min-height: 100%;
  background: var(--fluent-brand);
  position: absolute;
  left: 0;
  top: 0;
}
.security-header {
  background-image: radial-gradient(circle at 20% 10%, rgba(255,255,255,.56), transparent 28%), linear-gradient(135deg, #0f6cbd, #5b5fc7) !important;
  border-radius: var(--fluent-radius-large) !important;
}
.login_right, section .card.semi-transparent-white-bg, .semi-transparent-white-bg {
  background: rgba(255,255,255,.86) !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 20px !important;
  box-shadow: var(--fluent-shadow-16) !important;
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}
body:has(section .semi-transparent-white-bg), body[data-sidebar="dark"] section {
  background: radial-gradient(circle at 20% 10%, rgba(15,108,189,.18), transparent 36%), radial-gradient(circle at 85% 0, rgba(91,95,199,.16), transparent 32%), #f3f6fb !important;
}
.nav-tabs, .nav-pills { gap: 6px; }
.nav-tabs .nav-link, .nav-pills .nav-link {
  border-radius: 999px !important;
  border: 1px solid rgba(0,0,0,.09) !important;
  color: var(--fluent-text-secondary) !important;
  background: rgba(255,255,255,.74) !important;
}
.nav-tabs .nav-link.active, .nav-pills .nav-link.active { color: #fff !important; background: var(--fluent-brand) !important; border-color: var(--fluent-brand) !important; }
/* 已在 global.css 全局禁用 modal-backdrop，避免黑色薄雾盖住弹窗输入框 */
.modal-backdrop.show { display: none !important; opacity: 0 !important; pointer-events: none !important; backdrop-filter: none !important; }
.footer {
  background: rgba(255,255,255,.56) !important;
  border-top: 1px solid rgba(0,0,0,.08) !important;
  color: var(--fluent-text-secondary) !important;
  backdrop-filter: blur(18px);
}
hr, .border-bottom, .border-top, .border-left, .border-right { border-color: rgba(0,0,0,.08) !important; }
.text-muted, .text-black-50, .text-secondary { color: var(--fluent-text-secondary) !important; }
.bg-white { background-color: rgba(255,255,255,.86) !important; }
.bg-light { background-color: rgba(245,248,252,.86) !important; }
.rounded, .rounded-lg { border-radius: var(--fluent-radius-large) !important; }
.waves-effect { -webkit-tap-highlight-color: transparent; }
@media (max-width: 992px) {
  .navbar-header { padding: 0 14px !important; }
  .page-content { padding-top: 78px !important; }
  .container-fluid { padding-left: 14px !important; padding-right: 14px !important; }
  .card, .modal-content, .table-responsive { border-radius: 14px !important; }
}
@media (prefers-color-scheme: dark) {
  body:not(.force-light) {
    --fluent-canvas: #1f1f1f;
    --fluent-mica: rgba(32,32,32,.84);
    --fluent-layer: rgba(41,41,41,.78);
    --fluent-card: rgba(45,45,45,.90);
    --fluent-card-solid: #2d2d2d;
    --fluent-text: #f5f5f5;
    --fluent-text-secondary: #c7c7c7;
    --fluent-text-tertiary: #9d9d9d;
    --fluent-stroke: rgba(255,255,255,.13);
    --fluent-stroke-subtle: rgba(255,255,255,.08);
    background: radial-gradient(circle at 10% -8%, rgba(15,108,189,.20), transparent 34%), radial-gradient(circle at 95% 0, rgba(91,95,199,.16), transparent 32%), #202020 !important;
  }
  body:not(.force-light) #page-topbar,
  body:not(.force-light) .vertical-menu,
  body:not(.force-light) .dropdown-menu { background: rgba(32,32,32,.78) !important; border-color: rgba(255,255,255,.10) !important; }
  body:not(.force-light) .card,
  body:not(.force-light) .modal-content,
  body:not(.force-light) .table-responsive { background: rgba(45,45,45,.90) !important; border-color: rgba(255,255,255,.10) !important; }
  body:not(.force-light) .form-control,
  body:not(.force-light) .custom-select,
  body:not(.force-light) .input-group-text { background: rgba(58,58,58,.82) !important; color: #f5f5f5 !important; border-color: rgba(255,255,255,.14) !important; }
  body:not(.force-light) .table thead th { background: rgba(58,58,58,.72) !important; }
  body:not(.force-light) #sidebar-menu ul li a { color: #e0e0e0 !important; }
  body:not(.force-light) .dropdown-item { color: #f5f5f5 !important; }
}
/* ========== Fluent strict refinements v2 ========== */
:root { --fluent-selection-bg: rgba(15,108,189,.12); }
body[data-sidebar="dark"] .vertical-menu, body[data-sidebar="dark"] .navbar-brand-box { background: rgba(255,255,255,.74) !important; }
body[data-sidebar="dark"] #sidebar-menu ul li a, body[data-sidebar="dark"] #sidebar-menu ul li a i, body[data-sidebar="dark"] .menu-title { color: #1e1e1e !important; font-weight: 500 !important; }
body[data-sidebar="dark"] #sidebar-menu ul li.mm-active>a, body[data-sidebar="dark"] #sidebar-menu ul li a.active, body[data-sidebar="dark"] #sidebar-menu ul li a:hover { color: var(--fluent-brand) !important; }
body[data-sidebar="dark"] #sidebar-menu ul li.mm-active>a i, body[data-sidebar="dark"] #sidebar-menu ul li a.active i, body[data-sidebar="dark"] #sidebar-menu ul li a:hover i { color: var(--fluent-brand) !important; }
.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple, .select2-dropdown {
  border-radius: 10px !important; border: 1px solid rgba(0,0,0,.12) !important; background: rgba(255,255,255,.90) !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: rgba(15,108,189,.12) !important; color: var(--fluent-brand) !important; }
.nav-tabs, .nav-pills { gap: 6px; border-bottom-color: rgba(0,0,0,.08) !important; }
.nav-tabs .nav-link, .nav-pills .nav-link {
  border-radius: 10px !important; border: 1px solid transparent !important; color: var(--fluent-text-secondary) !important; background: transparent !important;
}
.nav-tabs .nav-link.active, .nav-pills .nav-link.active, .nav-tabs .show>.nav-link, .nav-pills .show>.nav-link {
  color: #fff !important; background: var(--fluent-brand) !important; border-color: var(--fluent-brand) !important; box-shadow: 0 8px 20px rgba(15,108,189,.22) !important;
}
.custom-control-input:checked ~ .custom-control-label::before, .custom-checkbox input:checked + label:before, .custom-radio input:checked + label:before { background-color: var(--fluent-brand) !important; border-color: var(--fluent-brand) !important; }
.progress, .progress-bar { border-radius: 999px !important; }
.progress { background: rgba(0,0,0,.06) !important; }
.progress-bar { background: linear-gradient(90deg, #0f6cbd 0%, #5b5fc7 100%) !important; }
.table-responsive, .table { border-radius: 16px !important; overflow: hidden; }
.page-item .page-link:hover { background: rgba(15,108,189,.08) !important; color: var(--fluent-brand) !important; }
.badge-primary, .badge-info, .badge-soft-info { color: var(--fluent-brand) !important; background: rgba(15,108,189,.12) !important; border: 1px solid rgba(15,108,189,.2); }
.btn-primary *, .btn-info *, .btn-success * { color: #fff !important; }
.btn-group .btn.active, .btn-group .btn[aria-pressed="true"] { background: var(--fluent-brand) !important; color: #fff !important; border-color: var(--fluent-brand) !important; }
.btn-group .btn.active *, .btn-group .btn[aria-pressed="true"] * { color: #fff !important; }
::selection { background: var(--fluent-selection-bg); color: var(--fluent-brand); }

/* ===================================================================
   ========== ① Logo/图标区域 - 消除白色块 ==========
   =================================================================== */
/* 左上角navbar-brand-box渐变背景，消除生硬白色 */
body[data-sidebar="dark"] .navbar-brand-box {
  background: linear-gradient(135deg, rgba(15,108,189,.06) 0%, transparent 100%) !important;
  border-right: 1px solid rgba(0,0,0,.06) !important;
}
.navbar-brand-box {
  transition: background .3s ease;
}
/* logo中白色背景图片的容器瘦身，避免多余白底 */
.logo-lg img, .logo-sm img {
  background: transparent !important;
  mix-blend-mode: multiply;
  opacity: .92;
  transition: opacity .2s ease;
}
.logo-lg img:hover, .logo-sm img:hover {
  opacity: 1;
}
/* logo-dark / logo-light 切换指示器统一 */
.logo-dark, .logo-light {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* 左侧logo区域整体圆润化，去除白块感 */
.navbar-brand-box {
  border-radius: 0 16px 0 0 !important;
  overflow: hidden;
}

/* ===================================================================
   ========== ② 暗色模式文本对比度修复 ==========
   =================================================================== */
@media (prefers-color-scheme: dark) {
  body:not(.force-light) {
    --fluent-text: #ededed !important;
    --fluent-text-secondary: #b8b8b8 !important;
    --fluent-text-tertiary: #8a8a8a !important;
  }
  /* 深色背景上的灰色文字修复 */
  body:not(.force-light) .text-muted,
  body:not(.force-light) .text-gray,
  body:not(.force-light) .text-black-50,
  body:not(.force-light) .text-secondary {
    color: #b8b8b8 !important;
  }
  body:not(.force-light) .card-body p,
  body:not(.force-light) .card-body span:not(.badge):not(.label),
  body:not(.force-light) table td,
  body:not(.force-light) .table td {
    color: #d4d4d4 !important;
  }
  body:not(.force-light) h1, body:not(.force-light) h2, 
  body:not(.force-light) h3, body:not(.force-light) h4,
  body:not(.force-light) h5, body:not(.force-light) h6,
  body:not(.force-light) .card-title,
  body:not(.force-light) .h5, body:not(.force-light) .h4 {
    color: #f0f0f0 !important;
  }
  body:not(.force-light) label,
  body:not(.force-light) .col-form-label,
  body:not(.force-light) .form-control-label {
    color: #c8c8c8 !important;
  }
  /* 表格头部可读性 */
  body:not(.force-light) .table thead th {
    color: #b0b0b0 !important;
    background: rgba(50,50,50,.82) !important;
  }
  /* 带灰色背景的卡片区域修复 */
  body:not(.force-light) .bg-gray,
  body:not(.force-light) .bg-light,
  body:not(.force-light) [class*="bg-gray"] {
    background-color: rgba(55,55,55,.72) !important;
  }
  body:not(.force-light) .bg-gray p,
  body:not(.force-light) .bg-light p,
  body:not(.force-light) [class*="bg-gray"] p,
  body:not(.force-light) .bg-gray .text-gray {
    color: #cfcfcf !important;
  }
  /* 登录信息区域文字修复 */
  body:not(.force-light) .bg-gray .dc,
  body:not(.force-light) .bg-gray .text-primary {
    color: #5a9bff !important;
  }
  /* 查看更多信息按钮 */
  body:not(.force-light) .configuration-btn-down {
    color: #5a9bff !important;
  }
  /* 登录信息卡片标题 */
  body:not(.force-light) [class*="text-gray"] {
    color: #bcbcbc !important;
  }
}

/* ===================================================================
   ========== ③ servicedetail 控制区域高度优化 ==========
   =================================================================== */
/* dropdown菜单最大高度+滚动，确保所有选项可见 */
.dropdown-menu {
  max-height: 420px !important;
  overflow-y: auto;
}
/* dropdown项较大点击区域 */
.dropdown-item {
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  font-size: 13.5px !important;
  line-height: 1.3 !important;
}
/* servicedetail 控制按钮组提升 */
.server_header_box .btn-group .dropdown-menu {
  min-width: 180px !important;
  padding: 6px !important;
}
.server_header_box .btn-group .dropdown-menu .dropdown-item {
  padding: 10px 14px !important;
  border-radius: 8px !important;
  margin: 2px 0;
  transition: background .14s ease, padding-left .14s ease;
}
.server_header_box .btn-group .dropdown-menu .dropdown-item:hover {
  padding-left: 20px !important;
  background: rgba(15,108,189,.10) !important;
}
/* 控制与Console按钮更醒目 */
.custom-button, .server_header_box .btn-primary {
  min-height: 34px !important;
  padding: 6px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
}
.custom-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,108,189,.25) !important;
}
/* server_header_box 顶部区域优化 - 消除紧凑感 */
.server_header_box {
  padding: 22px 28px !important;
}
.box_left_wrap {
  min-height: 80px !important;
  padding: 6px 0 !important;
}
.box_left_wrap h5 {
  font-size: 15px !important;
  margin-bottom: 2px;
}
/* 电源图标区域视觉放大 */
.powerimg {
  width: 54px !important;
  height: 54px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(6,31,179,.22) !important;
}
/* 左侧登录信息卡片内间距调整 */
.bg-gray.card-body {
  padding: 14px 16px !important;
}
.bg-gray.card-body p {
  margin-bottom: 6px;
  line-height: 1.5;
}
.bg-gray.card-body .fr {
  margin-top: -2px;
}

/* ===================================================================
   ========== ④ 全局美化增强 ==========
   =================================================================== */

/* 4.1 卡片入场微动画 */
.card {
  transition: transform .22s cubic-bezier(.22,.68,0,1), box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-2px);
}
/* 商品标题区域留白与呼吸感 */
.page-title-box {
  padding-top: 6px !important;
  padding-bottom: 10px !important;
}

/* 4.2 服务详情头部渐变升级 - 红色风格 */
.server_header_box {
  background: linear-gradient(135deg, #dc3545 0%, #b02a37 45%, #962c39 100%) !important;
  position: relative;
  overflow: visible !important;
}
/* 微妙的装饰光效 */
.server_header_box::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

/* 4.3 表格体验优化 */
.table tbody tr {
  transition: background .15s ease, transform .12s ease;
  cursor: default;
}
.table tbody tr:hover {
  background: rgba(15,108,189,.045) !important;
  transform: scale(1.002);
}
.table thead th {
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: .01em;
}

/* 4.4 按钮增强交互 */
.btn {
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .14s cubic-bezier(.22,.68,0,1);
}
.btn:active {
  transform: scale(.96);
}

/* 4.5 状态标签升级 */
.badge, .status, [class*="status-"] {
  font-size: 12px !important;
  letter-spacing: .02em !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.badge-pill {
  padding: .3rem .7rem !important;
}

/* 4.6 表单输入框视觉升级 */
.form-control:focus, .custom-select:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(15,108,189,.18), inset 0 -1px 0 rgba(0,0,0,.04) !important;
}

/* 4.7 侧栏菜单图标色活起来 */
#sidebar-menu ul li a i {
  font-size: 19px !important;
  transition: transform .18s ease;
}
#sidebar-menu ul li a:hover i {
  transform: translateX(2px);
}

/* 4.8 面包屑/页面标题区域呼吸感 */
.page-title-box .page-title {
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: -.02em;
}
.breadcrumb {
  font-size: 13px !important;
  opacity: .78;
}

/* 4.9 Tabs 切换增强 */
.nav-tabs .nav-link, .nav-pills .nav-link {
  font-weight: 500 !important;
  font-size: 13px !important;
  min-height: 36px;
  display: flex !important;
  align-items: center !important;
}
.nav-tabs .nav-link.active, .nav-pills .nav-link.active {
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(15,108,189,.20) !important;
}

/* 4.10 进度条光效 */
.progress-bar {
  position: relative;
  overflow: hidden;
}
.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: progressShimmer 2.8s ease-in-out infinite;
}
@keyframes progressShimmer {
  0% { left: -60%; }
  80% { left: 120%; }
  100% { left: 120%; }
}

/* 4.11 模态弹窗圆角与质感统一 */
.modal-content {
  border-radius: 18px !important;
  border: none !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.18) !important;
}
.modal-header {
  border-radius: 18px 18px 0 0 !important;
  padding: 20px 24px 16px !important;
}
.modal-footer {
  border-radius: 0 0 18px 18px !important;
  padding: 16px 24px 20px !important;
}
.modal-body {
  padding: 20px 24px !important;
}
.modal-header .close {
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.modal-header .close:hover {
  background: rgba(0,0,0,.06);
}

/* 4.12 产品详情中配置项排版优化 */
.configuration .bg-light.card-body.bg-gray.row {
  border-radius: 8px !important;
  transition: background .15s ease, border-color .15s ease;
  border: 1px solid transparent;
}
.configuration .bg-light.card-body.bg-gray.row:hover {
  border-color: rgba(15,108,189,.12);
  background: rgba(246,249,253,.94) !important;
}

/* 4.13 概览中的数据/图表容器 */
#home1 .chart_content_box, [id*="usedChartBox"] {
  border-radius: 12px;
  overflow: hidden;
}
.echarts {
  border-radius: 12px;
}

/* 4.14 代码块/工具提示气泡圆润 */
.popover, .tooltip-inner {
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.12) !important;
}

/* 4.15 页面整体滚动条美化（Webkit内核） */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.14);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,.24);
}

/* 4.16 财务/时间等灰色信息区域柔和 */
.text-gray, .text-muted {
  transition: color .15s ease;
}

/* 4.17 产品详情须知区块(service-info-card)暗色模式下修复 */
@media (prefers-color-scheme: dark) {
  body:not(.force-light) .service-info-card {
    background: rgba(45,45,45,.92) !important;
    border-color: rgba(255,255,255,.10) !important;
    color: #e0e0e0 !important;
  }
  body:not(.force-light) .service-info-card h3,
  body:not(.force-light) .service-info-card h4,
  body:not(.force-light) .service-info-card .faq-item p {
    color: #eee !important;
  }
  body:not(.force-light) .service-info-card .welcome-message {
    background: rgba(15,108,189,.18) !important;
    border-left-color: #2a7de1 !important;
    color: #dce8f5 !important;
  }
  body:not(.force-light) .service-info-card .warning-box {
    background: rgba(243,156,18,.12) !important;
    color: #ddd !important;
  }
  body:not(.force-light) .service-info-card .danger-note {
    background: rgba(231,76,60,.14) !important;
    color: #f0a8a8 !important;
  }
  body:not(.force-light) .service-info-card .contact-item {
    background: rgba(55,55,55,.72) !important;
    color: #d4d4d4 !important;
  }
  body:not(.force-light) .service-info-card .faq-item {
    background: rgba(55,55,55,.65) !important;
    border-color: rgba(255,255,255,.08) !important;
  }
  body:not(.force-light) .service-info-card .faq-item:hover {
    border-color: var(--fluent-brand) !important;
  }
  body:not(.force-light) .service-info-card .contact-item a {
    color: #5a9bff !important;
  }
  body:not(.force-light) .service-info-card hr {
    border-color: rgba(255,255,255,.08) !important;
  }
}
/* 4.18 service-info-card 本身也微调一下亮色模式 */
.service-info-card {
  border-radius: var(--fluent-radius-large) !important;
  box-shadow: var(--fluent-shadow-8) !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  transition: box-shadow .22s ease;
}
.service-info-card:hover {
  box-shadow: var(--fluent-shadow-16) !important;
}

/* 4.19 备注重命名按钮（小铅笔）视觉提升 */
.bx-edit-alt.pointer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(15,108,189,.08);
  color: var(--fluent-brand);
  transition: background .14s ease, transform .14s ease;
}
.bx-edit-alt.pointer:hover {
  background: rgba(15,108,189,.16);
  transform: scale(1.1);
}

/* ===================================================================
   ========== ⑤ 产品号(domain) 黑色加粗 ==========
   =================================================================== */
/* 产品详情蓝色头部内的产品编号/域名 — 深色加粗高亮 */
/* 匹配 power_box 区域中第二个 section（即 domain/产品编号） */
.server_header_box .power_box .text-white > div:last-child section:last-child span,
.server_header_box .power_box section:not(.d-flex) span {
  color: #1a1a2e !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: .02em;
  background: rgba(255,255,255,.30);
  padding: 2px 12px;
  border-radius: 6px;
  display: inline-block;
}
.server_header_box .power_box section:not(.d-flex) span:hover {
  background: rgba(255,255,255,.45);
}

/* ===================================================================
   ========== ⑥ 蓝色区域(server_header_box) 扩大 ==========
   =================================================================== */
/* 横向彻底拉宽 */
.server_header_box {
  padding: 28px 32px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}
/* 每一块信息区的间距变大 */
.server_header_box .box_left_wrap {
  min-height: 90px !important;
  padding: 8px 20px !important;
}
.server_header_box .power_box {
  min-width: 200px !important;
}
/* 右侧控制按钮组位置对齐 */
.server_header_box .d-flex.justify-content-end {
  padding: 8px 0;
  gap: 6px;
}
.server_header_box .btn-group.ml-2.mr-2.mt-2 {
  margin: 0 4px !important;
  margin-top: 2px !important;
}

/* ===================================================================
   ========== ⑦ 暗色模式的侧栏覆盖修复 ==========
   =================================================================== */
@media (prefers-color-scheme: dark) {
  body:not(.force-light) #sidebar-menu ul li a {
    color: #e2e2e2 !important;
    font-weight: 500 !important;
  }
  body:not(.force-light) #sidebar-menu ul li a i {
    color: #c0c0c0 !important;
  }
  body:not(.force-light) .vertical-menu {
    background: rgba(32,32,32,.82) !important;
  }
  body:not(.force-light) .navbar-brand-box {
    background: rgba(32,32,32,.78) !important;
  }
  /* 暗色下顶部导航栏也变深色 */
  body:not(.force-light) #page-topbar {
    background: rgba(30,30,30,.82) !important;
    border-bottom-color: rgba(255,255,255,.08) !important;
  }
}
