/*
 * Qusernew Clean UI v4
 * Build: 2026-07-25 v3
 * 明亮、简洁、信息优先的用户中心主题。
 */
:root {
  --qn-primary: #6291f9;
  --qn-primary-dark: #1d4ed8;
  --qn-primary-soft: #eff6ff;
  --qn-success: #16a34a;
  --qn-success-soft: #ecfdf3;
  --qn-warning: #d97706;
  --qn-warning-soft: #fff7ed;
  --qn-danger: #dc2626;
  --qn-danger-soft: #fef2f2;
  --qn-info: #0891b2;
  --qn-bg: #f4f6f9;
  --qn-surface: #ffffff;
  --qn-text: #172033;
  --qn-text-2: #667085;
  --qn-muted: #98a2b3;
  --qn-line: #e7ebf1;
  --qn-line-strong: #d8dee8;
  --qn-sidebar: 236px;
  --qn-topbar: 64px;
  --qn-radius-sm: 8px;
  --qn-radius: 12px;
  --qn-radius-lg: 16px;
  --qn-shadow: 0 8px 24px rgba(16, 24, 40, .06);
}

html, body { min-height: 100%; }
body.qusernew-theme-v3,
body[data-sidebar="light"],
body[data-sidebar="dark"] {
  color: var(--qn-text);
  background: var(--qn-bg) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--qn-primary); transition: .18s ease; }
a:hover { color: var(--qn-primary-dark); text-decoration: none; }

/* 顶部导航 */
#page-topbar.qn-topbar,
#page-topbar {
  height: var(--qn-topbar);
  background: rgba(255,255,255,.98) !important;
  border-bottom: 1px solid var(--qn-line);
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}
.navbar-header {
  height: var(--qn-topbar);
  padding: 0 18px 0 0 !important;
}
.qn-topbar-left,
.qn-topbar-right { display: flex; align-items: center; height: 100%; }
.navbar-brand-box {
  width: var(--qn-sidebar) !important;
  height: var(--qn-topbar);
  padding: 0 20px !important;
  display: flex;
  align-items: center;
  background: #fff !important;
  border-right: 1px solid var(--qn-line);
}
.navbar-brand-box .logo { width: 100%; height: 100%; display: flex; align-items: center; }
.navbar-brand-box .logo-lg,
.navbar-brand-box .logo-sm { height: 100%; display: flex; align-items: center; }
.navbar-brand-box img { width: auto !important; max-width: 168px; max-height: 38px; object-fit: contain; }

.navbar-brand-box .qn-site-logo { display: flex !important; align-items: center; width: 100%; height: 100%; overflow: hidden; }
.navbar-brand-box .logo-dark,
.navbar-brand-box .logo-light { display: none !important; }
.navbar-brand-box .qn-site-logo .logo-sm { display: none; }
.navbar-brand-box .qn-site-logo .logo-lg { display: flex; }
.navbar-brand-box .qn-site-logo img { display: block; }

#vertical-menu-btn {
  width: 40px;
  height: 40px;
  margin-left: 12px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #475467 !important;
  background: transparent !important;
}
#vertical-menu-btn:hover { color: var(--qn-primary) !important; background: var(--qn-primary-soft) !important; }
.qn-page-identity { margin-left: 12px; min-width: 0; }
.qn-page-identity strong { display: block; color: #101828; font-size: 15px; font-weight: 650; line-height: 1.2; }
.qn-page-identity span { display: block; margin-top: 3px; color: var(--qn-muted); font-size: 12px; line-height: 1.2; }
.qn-top-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  margin-left: 8px;
  padding: 0 13px;
  border: 1px solid var(--qn-line);
  border-radius: 10px;
  color: #475467 !important;
  background: #fff;
  font-weight: 500;
}
.qn-top-action:hover { color: var(--qn-primary) !important; border-color: #bfdbfe; background: var(--qn-primary-soft); }
.qn-top-action.is-primary { color: #fff !important; border-color: var(--qn-primary); background: var(--qn-primary); }
.qn-top-action.is-primary:hover { border-color: var(--qn-primary-dark); background: var(--qn-primary-dark); }
.qn-icon-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 6px;
  border-radius: 10px;
  color: #475467 !important;
}
.qn-icon-action:hover { color: var(--qn-primary) !important; background: var(--qn-primary-soft); }
.qn-icon-action i { margin: 0 !important; font-size: 21px; }
.qn-icon-action .badge { position: absolute; top: 2px; right: 2px; border: 2px solid #fff; }
#page-header-user-dropdown {
  min-height: 42px;
  margin-left: 8px;
  padding: 5px 8px !important;
  border-radius: 10px !important;
  color: #344054 !important;
}
#page-header-user-dropdown:hover,
.navbar-header .dropdown.show #page-header-user-dropdown { background: var(--qn-primary-soft) !important; }
.user-center_header {
  color: #fff !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(37,99,235,.22);
}
.dropdown-menu { padding: 8px !important; border: 1px solid var(--qn-line) !important; border-radius: 12px !important; box-shadow: var(--qn-shadow) !important; }
.dropdown-item { padding: 9px 11px !important; border-radius: 8px; color: #344054; }
.dropdown-item:hover { color: var(--qn-primary); background: var(--qn-primary-soft) !important; }

/* 左侧菜单 */
.vertical-menu {
  width: var(--qn-sidebar) !important;
  top: var(--qn-topbar) !important;
  background: #fff !important;
  border-right: 1px solid var(--qn-line);
  box-shadow: none !important;
}
#sidebar-menu { padding: 16px 13px 24px !important; }
.qn-sidebar-caption {
  padding: 6px 12px 10px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
}
#sidebar-menu ul li { margin-bottom: 4px; }
body[data-sidebar="dark"] #sidebar-menu ul li a,
body[data-sidebar="light"] #sidebar-menu ul li a,
#sidebar-menu ul li a {
  min-height: 43px;
  display: flex;
  align-items: center;
  padding: 9px 12px !important;
  border-radius: 9px;
  color: #475467 !important;
  font-size: 14px;
  font-weight: 500;
}
#sidebar-menu ul li a i { min-width: 22px; margin-right: 9px; color: #7b8495 !important; font-size: 18px; }
#sidebar-menu ul li a:hover { color: var(--qn-primary) !important; background: var(--qn-primary-soft) !important; }
#sidebar-menu ul li a:hover i { color: var(--qn-primary) !important; }
body[data-sidebar="dark"] .mm-active > a,
body[data-sidebar="light"] .mm-active > a,
#sidebar-menu .mm-active > a,
#sidebar-menu a.active {
  color: var(--qn-primary) !important;
  background: var(--qn-primary-soft) !important;
  box-shadow: inset 3px 0 0 var(--qn-primary);
}
body[data-sidebar="dark"] .mm-active > a i,
body[data-sidebar="light"] .mm-active > a i,
#sidebar-menu .mm-active > a i,
#sidebar-menu a.active i { color: var(--qn-primary) !important; }
#sidebar-menu ul li ul.sub-menu { padding: 4px 0 4px 17px; }
#sidebar-menu ul li ul.sub-menu li a { min-height: 36px; padding: 7px 10px 7px 28px !important; color: #667085 !important; font-size: 13px; font-weight: 400; }
.qn-sidebar-support { margin: 20px 5px 0; padding: 13px; border: 1px solid #dbeafe; border-radius: 12px; background: #f8fbff; }
.qn-sidebar-support strong { display: block; color: #344054; font-size: 13px; }
.qn-sidebar-support > span { display: block; margin: 4px 0 10px; color: #98a2b3; font-size: 12px; line-height: 1.7; }
.qn-support-action .qn-support-action-text,
.qn-support-action .qn-support-qq-number { display: inline; margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.qn-support-actions { display: grid; gap: 8px; }
.qn-support-action { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; font-size: 13px; font-weight: 500; line-height: 1; letter-spacing: 0; white-space: nowrap; cursor: pointer; transition: .18s ease; -webkit-font-smoothing: antialiased; }
.qn-support-action .qn-support-action-text { font-weight: 550; }
.qn-support-action .qn-support-qq-number { margin-left: 1px; font-size: 12px; font-weight: 500; opacity: .82; }
.qn-support-action i { flex: 0 0 auto; margin: 0 !important; font-size: 17px; }
.qn-support-action.is-ticket { color: #fff !important; border-color: var(--qn-primary); background: var(--qn-primary); }
.qn-support-action.is-ticket:hover { color: #fff !important; border-color: var(--qn-primary-dark); background: var(--qn-primary-dark); }
.qn-support-action.is-qq { color: var(--qn-primary); border-color: #cfe0ff; background: #fff; }
.qn-support-action.is-qq:hover { color: var(--qn-primary-dark); border-color: #9fc0ff; background: var(--qn-primary-soft); }
.qn-copy-toast { position: fixed; z-index: 99999; top: 82px; left: 50%; padding: 10px 16px; border-radius: 9px; color: #fff; background: rgba(16,24,40,.92); box-shadow: 0 10px 30px rgba(16,24,40,.18); font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%,-10px); transition: .2s ease; }
.qn-copy-toast.is-show { opacity: 1; transform: translate(-50%,0); }

/* 页面区域 */
.main-content { margin-left: var(--qn-sidebar) !important; min-height: 100vh; overflow: visible !important; }
.page-content { padding: calc(var(--qn-topbar) + 22px) 24px 34px !important; }
.container-fluid { max-width: 1600px; padding-right: 0 !important; padding-left: 0 !important; }
.page-title-box { margin: 0 0 18px !important; padding: 0 !important; }
.page-title-box h4 { color: #101828; font-size: 20px !important; font-weight: 650; }
.breadcrumb { padding: 0 !important; background: transparent !important; }

/* 通用组件 */
.card,
.dashboard-panel,
.qn-card {
  border: 1px solid var(--qn-line) !important;
  border-radius: var(--qn-radius) !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.03) !important;
}
.card { margin-bottom: 20px; }
.card-body { padding: 20px !important; }
.card-title { color: #101828; font-size: 16px; font-weight: 650; }
.btn { min-height: 38px; padding: 8px 15px; border-radius: 9px !important; font-size: 14px; font-weight: 550; box-shadow: none !important; }
.btn-sm { min-height: 32px; padding: 5px 11px; font-size: 12px; }
.btn-primary { border-color: var(--qn-primary) !important; background: var(--qn-primary) !important; }
.btn-primary:hover, .btn-primary:focus { border-color: var(--qn-primary-dark) !important; background: var(--qn-primary-dark) !important; }
.btn-secondary, .btn-light { color: #475467 !important; border-color: var(--qn-line-strong) !important; background: #fff !important; }
.btn-secondary:hover, .btn-light:hover { color: var(--qn-primary) !important; border-color: #bfdbfe !important; background: var(--qn-primary-soft) !important; }
.form-control, .custom-select, select, input[type="text"], input[type="password"], input[type="email"], input[type="number"] {
  min-height: 40px;
  border: 1px solid var(--qn-line-strong) !important;
  border-radius: 9px !important;
  color: #344054;
  background: #fff;
  box-shadow: none !important;
}
.form-control:focus, .custom-select:focus, select:focus, input:focus {
  border-color: #93b4ff !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1) !important;
}
.table-responsive { border: 1px solid var(--qn-line); border-radius: 10px; overflow: hidden; }
.table { margin-bottom: 0; color: #344054; }
.table thead th { padding: 12px 14px !important; border-top: 0 !important; border-bottom: 1px solid var(--qn-line) !important; color: #667085; background: #f8fafc !important; font-size: 12px; font-weight: 650; white-space: nowrap; }
.table tbody td { padding: 13px 14px !important; border-top: 1px solid #eef1f5 !important; vertical-align: middle; }
.table tbody tr:hover { background: #fafcff; }
.table-footer { padding: 14px 0 0 !important; }
.pagination .page-link { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; margin-left: 5px; border: 1px solid var(--qn-line) !important; border-radius: 8px !important; color: #667085; background: #fff; }
.pagination .active .page-link, .pagination .page-link:hover { color: #fff; border-color: var(--qn-primary) !important; background: var(--qn-primary) !important; }
.modal-content { border: 0 !important; border-radius: 15px !important; box-shadow: 0 24px 60px rgba(16,24,40,.18) !important; }
.modal-header, .modal-footer { border-color: var(--qn-line) !important; }
.alert { border: 0 !important; border-radius: 10px !important; }
.badge { padding: 5px 8px; border-radius: 999px; font-weight: 600; }

/* 首页 */
.qn-dashboard { display: block; }
.qn-welcome {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: 24px 26px;
  border: 1px solid #dbeafe;
  border-radius: var(--qn-radius-lg);
  background: linear-gradient(120deg, #ffffff 0%, #f5f9ff 60%, #edf5ff 100%);
}
.qn-welcome::after { content: ""; position: absolute; right: -70px; top: -120px; width: 270px; height: 270px; border-radius: 50%; background: rgba(37,99,235,.055); }
.qn-welcome-copy { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; }
.qn-avatar { width: 52px; height: 52px; flex: 0 0 52px; display: flex; align-items: center; justify-content: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb); font-size: 20px; font-weight: 700; box-shadow: 0 8px 20px rgba(37,99,235,.22); }
.qn-welcome h1 { margin: 0; color: #101828; font-size: 22px; font-weight: 700; line-height: 1.25; }
.qn-welcome p { margin: 6px 0 0; color: var(--qn-text-2); }
.qn-welcome-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; }
.qn-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.qn-stat-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; min-height: 112px; padding: 19px; border: 1px solid var(--qn-line); border-radius: var(--qn-radius); color: inherit !important; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.qn-stat-card:hover { transform: translateY(-2px); border-color: #cbdaf5; box-shadow: var(--qn-shadow); }
.qn-stat-card.is-static { cursor: default; }
.qn-stat-card.is-static:hover { transform: none; border-color: var(--qn-line); box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.qn-stat-icon { width: 46px; height: 46px; flex: 0 0 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--qn-primary); background: var(--qn-primary-soft); font-size: 23px; }
.qn-stat-card.is-green .qn-stat-icon { color: var(--qn-success); background: var(--qn-success-soft); }
.qn-stat-card.is-orange .qn-stat-icon { color: var(--qn-warning); background: var(--qn-warning-soft); }
.qn-stat-card.is-red .qn-stat-icon { color: var(--qn-danger); background: var(--qn-danger-soft); }
.qn-stat-content { min-width: 0; }
.qn-stat-label { display: block; color: var(--qn-text-2); font-size: 13px; }
.qn-stat-value { display: block; margin-top: 4px; overflow: hidden; color: #101828; font-size: 23px; font-weight: 720; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.qn-stat-note { display: block; margin-top: 5px; color: var(--qn-muted); font-size: 12px; }
.qn-panel { margin-bottom: 18px; padding: 20px; border: 1px solid var(--qn-line); border-radius: var(--qn-radius); background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.qn-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.qn-panel-title { margin: 0; color: #101828; font-size: 16px; font-weight: 680; }
.qn-panel-desc { margin: 4px 0 0; color: var(--qn-muted); font-size: 12px; }
.qn-quick-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.qn-quick-item { min-height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--qn-line); border-radius: 10px; color: #475467 !important; background: #fff; }
.qn-quick-item i { color: var(--qn-primary); font-size: 23px; }
.qn-quick-item span { font-size: 13px; font-weight: 550; }
.qn-quick-item:hover { color: var(--qn-primary) !important; border-color: #bfdbfe; background: var(--qn-primary-soft); transform: translateY(-1px); }
.qn-account-list { margin-top: 14px; border-top: 1px solid var(--qn-line); }
.qn-account-row { display: flex; align-items: center; justify-content: space-between; min-height: 45px; border-bottom: 1px solid #f0f2f6; }
.qn-account-row:last-child { border-bottom: 0; }
.qn-account-name { display: flex; align-items: center; gap: 8px; color: #475467; }
.qn-account-name i { color: #7b8495; font-size: 17px; }
.qn-status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; color: var(--qn-success); background: var(--qn-success-soft); font-size: 11px; font-weight: 650; }
.qn-status.is-off { color: var(--qn-warning); background: var(--qn-warning-soft); }
.qn-product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.qn-product-item { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 14px; border: 1px solid var(--qn-line); border-radius: 10px; color: #344054 !important; background: #fff; }
.qn-product-item:hover { color: var(--qn-primary) !important; border-color: #bfdbfe; background: #fbfdff; }
.qn-product-name { min-width: 0; display: flex; align-items: center; gap: 9px; }
.qn-product-name i { flex: 0 0 auto; color: var(--qn-primary); font-size: 19px; }
.qn-product-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qn-product-count { min-width: 30px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: 999px; color: var(--qn-primary); background: var(--qn-primary-soft); font-size: 12px; font-weight: 700; }
.qn-finance-list { margin-bottom: 14px; }
.qn-finance-row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid #f0f2f6; }
.qn-finance-row span { color: var(--qn-text-2); }
.qn-finance-row strong { color: #101828; font-size: 16px; }
.qn-notice-list { margin: 0; padding: 0; list-style: none; }
.qn-notice-item { display: grid; grid-template-columns: 92px minmax(0,1fr); align-items: center; min-height: 44px; border-bottom: 1px solid #f0f2f6; }
.qn-notice-item:last-child { border-bottom: 0; }
.qn-notice-time { color: var(--qn-muted); font-size: 12px; }
.qn-notice-title { overflow: hidden; color: #344054; text-overflow: ellipsis; white-space: nowrap; }
.qn-notice-title:hover { color: var(--qn-primary); }
.no-data { display: flex; align-items: center; justify-content: center; min-height: 120px; color: var(--qn-muted); }
.user-center_resources { height: auto !important; }
.user-center_dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }

/* 登录与注册页轻量统一 */
body .account-pages .card,
body .auth-full-page-content .card { border-radius: 16px !important; box-shadow: 0 18px 50px rgba(16,24,40,.10) !important; }

/* 响应式 */
@media (max-width: 1199px) {
  .qn-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .qn-page-identity span { display: none; }
}
@media (max-width: 991px) {
  .vertical-menu { top: var(--qn-topbar) !important; }
  .main-content { margin-left: 0 !important; }
  .page-content { padding: calc(var(--qn-topbar) + 18px) 16px 28px !important; }
  .navbar-brand-box { width: 72px !important; padding: 0 16px !important; border-right: 0; }
  .navbar-brand-box .logo-lg { display: none !important; }
  .navbar-brand-box .logo-sm { display: flex !important; }
  .qn-page-identity { display: none; }
  .qn-top-action span { display: none; }
  .qn-top-action { width: 40px; padding: 0; }
}
@media (max-width: 767px) {
  .navbar-header { padding-right: 8px !important; }
  .qn-welcome { align-items: flex-start; flex-direction: column; padding: 20px; }
  .qn-welcome-actions { width: 100%; }
  .qn-welcome-actions .btn { flex: 1; }
  .qn-stat-grid { grid-template-columns: 1fr; gap: 10px; }
  .qn-stat-card { min-height: 96px; }
  .qn-product-grid { grid-template-columns: 1fr; }
  .qn-notice-item { grid-template-columns: 76px minmax(0,1fr); }
  .card-body, .qn-panel { padding: 16px !important; }
  .table { min-width: 720px; }
}
@media (max-width: 479px) {
  .qn-icon-action.is-cart { display: none; }
  .qn-welcome-copy { align-items: flex-start; }
  .qn-welcome h1 { font-size: 19px; }
  .qn-quick-grid { gap: 8px; }
}


/* =========================================================
 * v3：智简魔方原生模板统一优化
 * 对 qusernew 自带页面生效；插件/模块动态内容仅继承外框与通用控件。
 * ========================================================= */
body.qusernew-theme-v3 .page-content { color: #344054; }
body.qusernew-theme-v3 .page-content > .container-fluid { animation: qnPageIn .18s ease-out; }
@keyframes qnPageIn { from { opacity: .45; transform: translateY(3px); } to { opacity: 1; transform: none; } }

body.qusernew-theme-v3 .card-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px !important;
  border-bottom: 1px solid var(--qn-line) !important;
  border-radius: var(--qn-radius) var(--qn-radius) 0 0 !important;
  color: #101828;
  background: #fff !important;
  font-weight: 650;
}
body.qusernew-theme-v3 .card-footer {
  padding: 14px 20px !important;
  border-top: 1px solid var(--qn-line) !important;
  border-radius: 0 0 var(--qn-radius) var(--qn-radius) !important;
  background: #fbfcfe !important;
}
body.qusernew-theme-v3 .card-body + .card-body { border-top: 1px solid #eef1f5; }
body.qusernew-theme-v3 .card-body h4.card-title { margin-bottom: 18px !important; }
body.qusernew-theme-v3 .card-body h4.card-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--qn-primary);
}

body.qusernew-theme-v3 .table-container { width: 100%; }
body.qusernew-theme-v3 .table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
body.qusernew-theme-v3 .table-filter,
body.qusernew-theme-v3 .table-search { margin: 0 !important; }
body.qusernew-theme-v3 .table-filter > .row,
body.qusernew-theme-v3 .table-search > .row { margin-right: 0; margin-left: 0; }
body.qusernew-theme-v3 .table-filter > .row > [class*="col"],
body.qusernew-theme-v3 .table-search > .row > [class*="col"] { padding-right: 0; padding-left: 0; }
body.qusernew-theme-v3 .table-filter .col,
body.qusernew-theme-v3 .table-filter [class*="col-"] { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
body.qusernew-theme-v3 .table-search .search-box { min-width: 260px; }
body.qusernew-theme-v3 .search-box .position-relative { position: relative; }
body.qusernew-theme-v3 .search-box .form-control { padding-right: 42px; }
body.qusernew-theme-v3 .search-box .search-icon {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 13px;
  color: #98a2b3;
  font-size: 19px;
  cursor: pointer;
  transform: translateY(-50%);
}
body.qusernew-theme-v3 .search-box .search-icon:hover { color: var(--qn-primary); }
body.qusernew-theme-v3 .tablelist td a:not(.btn) { font-weight: 550; }
body.qusernew-theme-v3 .tablelist .checkbox { width: 44px; }
body.qusernew-theme-v3 .tablelist .custom-control { min-height: 20px; margin: 0 !important; }
body.qusernew-theme-v3 .table-pageinfo { color: var(--qn-text-2); font-size: 12px; }
body.qusernew-theme-v3 .table-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
body.qusernew-theme-v3 .no-data { min-height: 150px; display: flex; align-items: center; justify-content: center; color: var(--qn-muted); font-size: 13px; }

body.qusernew-theme-v3 label { margin-bottom: 7px; color: #475467; font-size: 13px; font-weight: 600; }
body.qusernew-theme-v3 textarea.form-control { min-height: 110px; resize: vertical; }
body.qusernew-theme-v3 .form-group { margin-bottom: 18px; }
body.qusernew-theme-v3 .form-text,
body.qusernew-theme-v3 small.text-muted { color: var(--qn-muted) !important; }
body.qusernew-theme-v3 .form-control[readonly],
body.qusernew-theme-v3 .form-control:disabled { color: #667085; background: #f8fafc !important; }
body.qusernew-theme-v3 .input-group-text { border: 1px solid var(--qn-line-strong); color: #667085; background: #f8fafc; }
body.qusernew-theme-v3 .custom-control-label { font-weight: 500; }
body.qusernew-theme-v3 .custom-control-input:checked ~ .custom-control-label::before { border-color: var(--qn-primary); background: var(--qn-primary); }
body.qusernew-theme-v3 .bootstrap-select > .dropdown-toggle,
body.qusernew-theme-v3 .bootstrap-select .btn-default {
  min-height: 40px;
  border: 1px solid var(--qn-line-strong) !important;
  border-radius: 9px !important;
  color: #475467 !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.qusernew-theme-v3 .bootstrap-select.show > .dropdown-toggle { border-color: #93b4ff !important; box-shadow: 0 0 0 3px rgba(37,99,235,.1) !important; }

body.qusernew-theme-v3 .nav-tabs { gap: 5px; padding: 4px; border-bottom: 0 !important; border-radius: 10px; background: #f3f6fa; }
body.qusernew-theme-v3 .nav-tabs .nav-link { margin: 0; padding: 8px 13px; border: 0 !important; border-radius: 8px; color: #667085; font-size: 13px; font-weight: 550; }
body.qusernew-theme-v3 .nav-tabs .nav-link:hover { color: var(--qn-primary); }
body.qusernew-theme-v3 .nav-tabs .nav-link.active { color: var(--qn-primary); background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.08); }
body.qusernew-theme-v3 .nav-pills .nav-link { border-radius: 8px; color: #667085; }
body.qusernew-theme-v3 .nav-pills .nav-link.active { color: #fff; background: var(--qn-primary); }
body.qusernew-theme-v3 .list-group-item { padding: 14px 16px; border-color: var(--qn-line); color: #475467; }
body.qusernew-theme-v3 .list-group-item:first-child { border-radius: 10px 10px 0 0; }
body.qusernew-theme-v3 .list-group-item:last-child { border-radius: 0 0 10px 10px; }

body.qusernew-theme-v3 .btn-success { border-color: #16a34a !important; background: #16a34a !important; }
body.qusernew-theme-v3 .btn-success:hover { border-color: #15803d !important; background: #15803d !important; }
body.qusernew-theme-v3 .btn-danger { border-color: #dc2626 !important; background: #dc2626 !important; }
body.qusernew-theme-v3 .btn-warning { color: #fff !important; border-color: #d97706 !important; background: #d97706 !important; }
body.qusernew-theme-v3 a.text-success,
body.qusernew-theme-v3 a.text-primary,
body.qusernew-theme-v3 a.text-danger { display: inline-flex; align-items: center; gap: 4px; }

body.qusernew-theme-v3 .badge-light { color: #475467; background: #f2f4f7; }
body.qusernew-theme-v3 .status-active,
body.qusernew-theme-v3 .status-paid,
body.qusernew-theme-v3 .badge-success { color: #067647 !important; background: #ecfdf3 !important; }
body.qusernew-theme-v3 .status-pending,
body.qusernew-theme-v3 .status-unpaid,
body.qusernew-theme-v3 .badge-warning { color: #b54708 !important; background: #fff7ed !important; }
body.qusernew-theme-v3 .status-suspended,
body.qusernew-theme-v3 .status-cancelled,
body.qusernew-theme-v3 .status-terminated,
body.qusernew-theme-v3 .badge-danger { color: #b42318 !important; background: #fef3f2 !important; }
body.qusernew-theme-v3 .badge-primary,
body.qusernew-theme-v3 .badge-info { color: #175cd3 !important; background: #eff8ff !important; }

body.qusernew-theme-v3 .progress { height: 7px; border-radius: 99px; background: #edf1f6; }
body.qusernew-theme-v3 .progress-bar { border-radius: 99px; }
body.qusernew-theme-v3 .popover { border: 1px solid var(--qn-line); border-radius: 10px; box-shadow: var(--qn-shadow); }
body.qusernew-theme-v3 .popover-header { border-bottom-color: var(--qn-line); background: #f8fafc; }

/* 账户资料、发票资料等长表单 */
body.tpl-details .card-body.w-75,
body.tpl-invoiceaddress .card-body.w-75,
body.tpl-invoicecompany .card-body.w-75,
body.tpl-verifiedpersonal .card-body.w-75,
body.tpl-verifiedenterprises .card-body.w-75 {
  width: 100% !important;
  max-width: 1080px;
  padding: 22px 24px !important;
}
body.tpl-details .card,
body.tpl-invoiceaddress .card,
body.tpl-invoicecompany .card { overflow: hidden; }

/* 安全中心：去除旧版大面积深色背景 */
body.tpl-security .security-header { border-color: #dbeafe !important; background: linear-gradient(120deg,#fff,#f1f7ff) !important; }
body.tpl-security .security-header .text-white,
body.tpl-security .security-header .security-username,
body.tpl-security .security-header .security-meta,
body.tpl-security .security-header label { color: #344054 !important; }
body.tpl-security .security-header .security-logo { color: #fff !important; background: linear-gradient(135deg,#3b82f6,#2563eb) !important; box-shadow: 0 8px 20px rgba(37,99,235,.18); }
body.tpl-security .security-item { min-height: 74px; padding: 14px 0; border-bottom: 1px solid #eef1f5; }
body.tpl-security .security-item:last-child { border-bottom: 0; }
body.tpl-security .security-item-icon { border-radius: 10px !important; }

/* 工单、账单、产品列表 */
body.tpl-service .table-header,
body.tpl-billing .table-header,
body.tpl-supporttickets .table-header,
body.tpl-transaction .table-header,
body.tpl-invoicelist .table-header { padding-bottom: 2px; }
body.tpl-supporttickets .btn-rounded { border-radius: 9px !important; }
body.tpl-service .table-responsive,
body.tpl-billing .table-responsive,
body.tpl-supporttickets .table-responsive { overflow-x: auto; }

/* 详情页：只统一外层，不重写模块动态区域 */
body.tpl-servicedetail .card,
body.tpl-viewbilling .card,
body.tpl-viewticket .card { overflow: hidden; }
body.tpl-servicedetail .module-client-area,
body.tpl-servicedetail [class*="module_client"] { border-radius: 10px; }

/* 空状态、说明框 */
body.qusernew-theme-v3 .alert-info { color: #175cd3; background: #eff8ff !important; }
body.qusernew-theme-v3 .alert-success { color: #067647; background: #ecfdf3 !important; }
body.qusernew-theme-v3 .alert-warning { color: #b54708; background: #fff7ed !important; }
body.qusernew-theme-v3 .alert-danger { color: #b42318; background: #fef3f2 !important; }

@media (max-width: 991.98px) {
  .navbar-brand-box .qn-site-logo .logo-lg { display: none; }
  .navbar-brand-box .qn-site-logo .logo-sm { display: flex; }
  body.qusernew-theme-v3 .table-header { align-items: stretch; }
  body.qusernew-theme-v3 .table-filter,
  body.qusernew-theme-v3 .table-search,
  body.qusernew-theme-v3 .table-search .search-box { width: 100%; min-width: 0; }
  body.qusernew-theme-v3 .table-filter .col,
  body.qusernew-theme-v3 .table-filter [class*="col-"] { width: 100%; }
}
@media (max-width: 767.98px) {
  body.qusernew-theme-v3 .card-body { padding: 16px !important; }
  body.qusernew-theme-v3 .card-header,
  body.qusernew-theme-v3 .card-footer { padding: 13px 16px !important; }
  body.qusernew-theme-v3 .table-footer { align-items: flex-start; flex-direction: column; }
  body.tpl-details .card-body.w-75,
  body.tpl-invoiceaddress .card-body.w-75,
  body.tpl-invoicecompany .card-body.w-75,
  body.tpl-verifiedpersonal .card-body.w-75,
  body.tpl-verifiedenterprises .card-body.w-75 { padding: 16px !important; }
  .qn-sidebar-support > span { margin-bottom: 8px; }
}


/* v4：首页资源状态统计与资源表格 */
.qn-resource-panel-head { margin-bottom: 12px; }
.qn-resource-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.qn-resource-summary-btn {
  min-width: 126px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 13px;
  border: 1px solid var(--qn-line);
  border-radius: 10px;
  color: #475467 !important;
  background: #fff;
  font-size: 13px;
  font-weight: 550;
}
.qn-resource-summary-btn strong {
  min-width: 27px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}
.qn-resource-summary-btn.status-active { border-color: #bbf7d0; background: #f7fef9; }
.qn-resource-summary-btn.status-active strong { color: #15803d; background: #dcfce7; }
.qn-resource-summary-btn.status-expiring { border-color: #fed7aa; background: #fffaf5; }
.qn-resource-summary-btn.status-expiring strong { color: #c2410c; background: #ffedd5; }
.qn-resource-summary-btn.status-expired { border-color: #fecaca; background: #fff8f8; }
.qn-resource-summary-btn.status-expired strong { color: #b91c1c; background: #fee2e2; }
.qn-resource-summary-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(16,24,40,.06); }
.qn-resource-summary-btn.is-selected { color: #fff !important; box-shadow: 0 7px 16px rgba(16,24,40,.12); }
.qn-resource-summary-btn.is-selected strong { color: #fff !important; background: rgba(255,255,255,.2) !important; }
.qn-resource-summary-btn.status-active.is-selected { border-color: #16a34a; background: #16a34a; }
.qn-resource-summary-btn.status-expiring.is-selected { border-color: #ea580c; background: #ea580c; }
.qn-resource-summary-btn.status-expired.is-selected { border-color: #dc2626; background: #dc2626; }
.qn-resource-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.qn-resource-sort:hover { color: var(--qn-primary); }
.user-center_resources tbody tr[data-status="active" i] .qn-resource-status-dot { background: #22c55e !important; }
.user-center_resources tbody tr[data-status="pending" i] .qn-resource-status-dot { background: #f59e0b !important; }
.user-center_resources tbody tr[data-status="suspended" i] .qn-resource-status-dot { background: #f59e0b !important; }
.user-center_resources tbody tr[data-status="terminated" i] .qn-resource-status-dot,
.user-center_resources tbody tr[data-status="expired" i] .qn-resource-status-dot,
.user-center_resources tbody tr[data-status="cancelled" i] .qn-resource-status-dot,
.user-center_resources tbody tr[data-status="canceled" i] .qn-resource-status-dot { background: #ef4444 !important; }
.qn-resource-ip { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; color: #344054; white-space: nowrap; }
@media (max-width: 767px) {
  .qn-resource-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .qn-resource-summary-btn { min-width: 0; height: auto; min-height: 58px; padding: 8px; flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
}


/* v5.1：修复选中状态数量徽标颜色过浅 */
.qn-resource-summary-btn strong {
  visibility: visible !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
.qn-resource-summary-btn.status-active.is-selected strong {
  color: #166534 !important;
  background: #bbf7d0 !important;
  border: 1px solid #86efac !important;
}
.qn-resource-summary-btn.status-expiring.is-selected strong {
  color: #9a3412 !important;
  background: #fed7aa !important;
  border: 1px solid #fdba74 !important;
}
.qn-resource-summary-btn.status-expired.is-selected strong {
  color: #991b1b !important;
  background: #fecaca !important;
  border: 1px solid #fca5a5 !important;
}


/* v6：账户状态入口与实名姓名引导 */
.qn-account-list { overflow: hidden; }
.qn-account-row.qn-account-action {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--qn-line);
  color: #344054 !important;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.qn-account-row.qn-account-action:last-child { border-bottom: 0; }
.qn-account-row.qn-account-action:hover,
.qn-account-row.qn-account-action:focus {
  color: var(--qn-primary) !important;
  background: var(--qn-primary-soft);
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 12px;
  padding-right: 12px;
  outline: none;
}
.qn-account-row.qn-account-action .qn-account-name { min-width: 0; }
.qn-account-row.qn-account-action .qn-account-name i { flex: 0 0 auto; }
.qn-account-row.qn-account-action .qn-status { flex: 0 0 auto; }
.qn-realname-modal .modal-content { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(16,24,40,.18); }
.qn-realname-modal .modal-header { padding: 20px 22px 12px; border-bottom: 0; }
.qn-realname-modal .modal-title { color: #101828; font-size: 18px; font-weight: 700; }
.qn-realname-modal .modal-body { padding: 8px 22px 22px; }
.qn-realname-modal .qn-realname-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 18px;
  padding: 11px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #1e40af;
  background: #eff6ff;
  font-size: 13px;
  line-height: 1.55;
}
.qn-realname-modal .qn-realname-tip i { margin-top: 2px; font-size: 17px; }
.qn-realname-modal label { color: #344054; font-weight: 600; }
.qn-realname-modal .form-control { height: 44px; border-radius: 10px; }
.qn-realname-modal .modal-footer { padding: 14px 22px 20px; border-top: 1px solid var(--qn-line); }
.qn-realname-modal .modal-footer .btn { min-width: 92px; }
@media (max-width: 575.98px) {
  .qn-realname-modal .modal-dialog { margin: 12px; }
}


/* v6.1：已绑定手机/邮箱显示独立修改入口 */
.qn-account-row.qn-account-bound-row {
  min-height: 48px;
  padding: 11px 0;
  gap: 14px;
  border-bottom: 1px solid var(--qn-line);
}
.qn-account-row.qn-account-bound-row:last-child { border-bottom: 0; }
.qn-account-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex: 0 0 auto;
}
.qn-account-modify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 48px;
  padding: 0 11px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #2563eb !important;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.qn-account-modify:hover,
.qn-account-modify:focus {
  color: #fff !important;
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: 0 4px 10px rgba(37,99,235,.18);
  outline: none;
}
@media (max-width: 420px) {
  .qn-account-controls { gap: 6px; }
  .qn-account-modify { min-width: 42px; padding: 0 8px; }
}


/* v6.2：首页原地安全验证弹窗 */
.qn-account-modify { appearance: none; -webkit-appearance: none; cursor: pointer; }
.qn-account-modify.is-loading { min-width: 58px; opacity: .72; cursor: wait; }
.qn-account-action.is-loading { opacity: .65; cursor: wait; }
body.qusernew-theme-v2 .modal[id^="bindPhone"],
body.qusernew-theme-v2 .modal[id^="changeEmail"],
body.qusernew-theme-v2 #bindEmailHandleModal {
  z-index: 1060;
}
body.qusernew-theme-v2 .modal[id^="bindPhone"] .modal-content,
body.qusernew-theme-v2 .modal[id^="changeEmail"] .modal-content,
body.qusernew-theme-v2 #bindEmailHandleModal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(16,24,40,.20);
}
body.qusernew-theme-v2 .modal[id^="bindPhone"] .modal-header,
body.qusernew-theme-v2 .modal[id^="changeEmail"] .modal-header,
body.qusernew-theme-v2 #bindEmailHandleModal .modal-header {
  padding: 19px 22px 14px;
  border-bottom: 1px solid var(--qn-line);
}
body.qusernew-theme-v2 .modal[id^="bindPhone"] .modal-title,
body.qusernew-theme-v2 .modal[id^="changeEmail"] .modal-title,
body.qusernew-theme-v2 #bindEmailHandleModal .modal-title {
  color: #101828;
  font-size: 17px;
  font-weight: 700;
}
body.qusernew-theme-v2 .modal[id^="bindPhone"] .modal-body,
body.qusernew-theme-v2 .modal[id^="changeEmail"] .modal-body,
body.qusernew-theme-v2 #bindEmailHandleModal .modal-body { padding: 22px; }
body.qusernew-theme-v2 .modal[id^="bindPhone"] .modal-footer,
body.qusernew-theme-v2 .modal[id^="changeEmail"] .modal-footer,
body.qusernew-theme-v2 #bindEmailHandleModal .modal-footer {
  padding: 14px 22px 20px;
  border-top: 1px solid var(--qn-line);
}
body.qusernew-theme-v2 .modal[id^="bindPhone"] .form-control,
body.qusernew-theme-v2 .modal[id^="changeEmail"] .form-control,
body.qusernew-theme-v2 #bindEmailHandleModal .form-control { min-height: 42px; border-radius: 9px; }
body.qusernew-theme-v2 .modal[id^="bindPhone"] .input-group .form-control,
body.qusernew-theme-v2 .modal[id^="changeEmail"] .input-group .form-control,
body.qusernew-theme-v2 #bindEmailHandleModal .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
@media (max-width: 575.98px) {
  body.qusernew-theme-v2 .modal[id^="bindPhone"] .modal-dialog,
  body.qusernew-theme-v2 .modal[id^="changeEmail"] .modal-dialog,
  body.qusernew-theme-v2 #bindEmailHandleModal .modal-dialog { margin: 12px; }
  body.qusernew-theme-v2 .modal .col-form-label.text-right { text-align: left !important; }
}

/* v6.3：左侧实名认证导航增加空姓名/纯数字校验，首页逻辑保持不变。 */


/* v6.6：移除首页内嵌安全弹窗，恢复跳转安全中心后自动打开弹窗的稳定模式。 */
