
h2.page-header {
  margin: 10px 0 25px 0;
  padding-bottom: 15px;
}
.user-baseinfo {
  margin-bottom: 25px;
}
.user-baseinfo table tr td {
  color: #999;
}
@media (min-width: 992px) {
  .user-center .avatar-text,
  .user-center .avatar-img {
    height: 150px;
    width: 150px;
    border-radius: 150px;
    line-height: 150px;
    font-size: 70px;
  }
  .user-center .avatar-img {
    font-size: 0;
  }
  .user-center .avatar-img img {
    height: 150px;
    width: 150px;
    border-radius: 150px;
  }
}
.sidebar-toggle {
  display: none;
}
/* 会员中心 - 后台式布局（左侧菜单 + 右侧内容区） */
body.fa-user-dashboard {
  background: #f6f8fb;
  /* 与前台 navbar-white 对齐：桌面端为 60px，移动端为 50px（见 frontend.css） */
  --fa-topbar-height: 60px;
}
@media (max-width: 768px) {
  body.fa-user-dashboard {
    --fa-topbar-height: 50px;
  }
}
/* 会员中心模式：左上角独立 logo 区（不让顶部横条贯穿到左侧） */
body.fa-user-dashboard .fa-sidebar-top {
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  height: var(--fa-topbar-height);
  width: 240px;
  padding: 0 14px;
  background: #fff;
  z-index: 1031; /* 高于 navbar(默认1030) */
  border-bottom: 1px solid #eef1f6;
  border-right: 1px solid #eef1f6;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}
body.fa-user-dashboard .fa-sidebar-top .fa-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
body.fa-user-dashboard .fa-sidebar-top .fa-sidebar-brand img {
  height: 24px;
  width: auto;
}
body.fa-user-dashboard .fa-sidebar-top .fa-sidebar-brand .brand-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #5b8cff;
}
body.fa-user-dashboard .fa-sidebar-top .fa-sidebar-collapse {
  margin-left: auto;
  border: 0;
  background: #f3f6fb;
  color: #4b5563;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.fa-user-dashboard .fa-sidebar-top .fa-sidebar-collapse:hover {
  background: #e9eff8;
}
body.fa-user-dashboard.fa-sidebar-collapsed .fa-sidebar-top {
  width: 64px;
  padding: 0;
  justify-content: center;
}
body.fa-user-dashboard.fa-sidebar-collapsed .fa-sidebar-top .fa-sidebar-brand {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
body.fa-user-dashboard.fa-sidebar-collapsed .fa-sidebar-top .fa-sidebar-brand .brand-text {
  display: none;
}
body.fa-user-dashboard.fa-sidebar-collapsed .fa-sidebar-top .fa-sidebar-brand img {
  display: block;
}
body.fa-user-dashboard.fa-sidebar-collapsed .fa-sidebar-top .fa-sidebar-collapse {
  display: none;
}

/* 会员中心模式：顶部 navbar 只从右侧内容区开始 */
body.fa-user-dashboard nav.navbar.navbar-fixed-top {
  left: 240px;
  width: calc(100% - 240px);
}
body.fa-user-dashboard.fa-sidebar-collapsed nav.navbar.navbar-fixed-top {
  left: 64px;
  width: calc(100% - 64px);
}
/* 会员中心：隐藏 navbar 内的 brand，避免重复 */
body.fa-user-dashboard .navbar .navbar-brand {
  display: none;
}
@media (max-width: 991px) {
  body.fa-user-dashboard nav.navbar.navbar-fixed-top {
    left: 0;
    width: 100%;
  }
  body.fa-user-dashboard.fa-sidebar-collapsed nav.navbar.navbar-fixed-top {
    left: 0;
    width: 100%;
  }
  /* 移动端：显示fa-sidebar-top，只显示折叠按钮，隐藏logo，无背景和边框 */
  body.fa-user-dashboard .fa-sidebar-top {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: var(--fa-topbar-height);
    padding: 0;
    justify-content: center;
    align-items: center;
    z-index: 1033;
    background: transparent;
    border: none;
    pointer-events: none;
  }
  /* 侧边栏展开时，缩放按钮应该在下面（被侧边栏遮挡） */
  body.fa-user-dashboard.sidebar-open .fa-sidebar-top,
  body.sidebar-open.fa-user-dashboard .fa-sidebar-top {
    z-index: 1020 !important;
  }
  body.fa-user-dashboard .fa-sidebar-top .fa-sidebar-brand {
    display: none;
  }
  /* 移动端折叠按钮样式 */
  body.fa-user-dashboard .fa-sidebar-top .fa-sidebar-collapse-mobile {
    display: inline-flex !important;
    visibility: visible !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 1034;
    position: relative;
    pointer-events: auto !important;
    opacity: 1 !important;
  }
  /* 侧边栏展开时，缩放按钮应该在下面 */
  body.fa-user-dashboard.sidebar-open .fa-sidebar-top .fa-sidebar-collapse-mobile,
  body.sidebar-open.fa-user-dashboard .fa-sidebar-top .fa-sidebar-collapse-mobile {
    z-index: 1020 !important;
  }
  body.fa-user-dashboard .fa-sidebar-top .fa-sidebar-collapse-mobile:hover,
  body.fa-user-dashboard .fa-sidebar-top .fa-sidebar-collapse-mobile:active {
    background: rgba(0, 0, 0, 0.05);
  }
  /* 移动端隐藏右下角的缩放按钮 */
  body.fa-user-dashboard .sidebar-toggle {
    display: none !important;
  }
  /* 移动端隐藏标签栏 */
  body.fa-user-dashboard .fa-console-tabs-nav {
    display: none !important;
  }
  /* 移动端隐藏导航栏中的站点名称 */
  body.fa-user-dashboard .navbar .navbar-brand {
    display: none;
  }
  /* 移动端侧边栏从顶部开始，确保在最上层 */
  body.fa-user-dashboard .sidenav {
    top: 0 !important;
    height: 100vh !important;
    z-index: 1032 !important;
    padding-top: 0 !important;
  }
  /* 移动端侧边栏打开时，导航栏应该在侧边栏下方 */
  body.fa-user-dashboard.sidebar-open nav.navbar.navbar-fixed-top {
    z-index: 1029;
  }
  /* 移动端侧边栏头部logo样式 - 从顶部开始，左对齐，垂直居中 */
  body.fa-user-dashboard .sidenav .sidenav-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    padding: 0 12px !important;
    border-bottom: 1px solid #eef1f6;
    margin-bottom: 12px;
    margin-top: 0 !important;
    min-height: 70px !important;
    height: 70px !important;
    box-sizing: border-box !important;
  }
  body.fa-user-dashboard .sidenav .sidenav-header .sidenav-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 10px;
    text-decoration: none;
    color: #333;
    width: 100%;
    height: 100%;
    line-height: 1;
  }
  body.fa-user-dashboard .sidenav .sidenav-header .sidenav-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-decoration: none;
    color: #333;
    width: 100%;
  }
  /* 确保侧边栏内容从顶部开始，无任何上边距 */
  body.fa-user-dashboard .sidenav {
    padding-top: 0 !important;
  }
  body.fa-user-dashboard .sidenav > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body.fa-user-dashboard .sidenav .sidenav-header .sidenav-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
  }
  body.fa-user-dashboard .sidenav .sidenav-header .sidenav-brand .brand-text {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
  }
  /* 移动端遮罩层 */
  body.fa-user-dashboard::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1028;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
  }
  body.fa-user-dashboard.sidebar-open::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
body.fa-user-dashboard main.content {
  background: transparent;
}
body.fa-user-dashboard .fa-user-shell {
  position: relative;
  min-height: calc(100vh - var(--fa-topbar-height));
}
/* 桌面端固定侧栏 */
@media (min-width: 992px) {
  body.fa-user-dashboard .fa-user-shell {
    padding-left: 240px;
  }
  body.fa-user-dashboard.fa-sidebar-collapsed .fa-user-shell {
    padding-left: 64px;
  }
  body.fa-user-dashboard .sidenav {
    position: fixed;
    top: var(--fa-topbar-height);
    left: 0;
    height: calc(100vh - var(--fa-topbar-height));
    width: 240px;
    overflow: auto;
    padding: 16px 14px 24px 16px;
    background: #ffffff;
    border-right: 1px solid #eef1f6;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  }
  /* 桌面端隐藏侧边栏内的logo（因为左上角已有独立logo区） */
  body.fa-user-dashboard .sidenav .sidenav-header {
    display: none;
  }
  body.fa-user-dashboard.fa-sidebar-collapsed .sidenav {
    width: 64px;
    padding: 12px 8px 20px 8px;
  }
  body.fa-user-dashboard:not(.fa-console-shell) .fa-user-main {
    padding: 22px 28px 32px;
  }
  body.fa-user-dashboard.fa-console-shell .fa-console-frame {
    padding: 18px 22px 22px 24px;
    box-sizing: border-box;
    height: calc(100vh - var(--fa-topbar-height));
  }
  body.fa-user-dashboard.fa-console-shell .fa-console-frame iframe {
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  }
  body.fa-user-dashboard .fa-user-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #eef1f6;
    border-radius: 10px;
    margin-bottom: 14px;
  }
  body.fa-user-dashboard .fa-user-topbar .title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
  }
}
/* 侧栏已按需求移除“头像/昵称/ID”等用户信息块 */
/* 侧栏菜单美化 */
body.fa-user-dashboard .sidenav .list-group {
  margin: 0;
}
body.fa-user-dashboard .sidenav .list-group-heading {
  background: transparent;
  border: 0;
  color: #6b7280;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 8px 6px;
}
body.fa-user-dashboard.fa-sidebar-collapsed .sidenav .list-group-heading {
  display: none;
}
body.fa-user-dashboard .sidenav .list-group-item {
  border: 0;
  padding: 0;
  margin: 5px 0;
  background: transparent;
}
body.fa-user-dashboard .sidenav .list-group-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #374151;
  text-decoration: none;
}
body.fa-user-dashboard .sidenav .list-group-item a:hover {
  background: #f3f6fb;
}
body.fa-user-dashboard .sidenav .list-group-item.active a,
body.fa-user-dashboard .sidenav .list-group-item.active a:hover {
  background: rgba(74, 144, 226, 0.12);
  color: #2563eb;
}

/* 子菜单（个人中心） */
body.fa-user-dashboard .sidenav .list-group-item.has-sub > a .nav-caret {
  margin-left: auto;
  transition: transform 0.15s ease;
  opacity: 0.7;
}
body.fa-user-dashboard .sidenav .list-group-item.has-sub.open > a .nav-caret {
  transform: rotate(180deg);
}
body.fa-user-dashboard .sidenav .nav-submenu {
  list-style: none;
  padding: 8px 0 10px;
  margin: 0;
  display: none;
}
body.fa-user-dashboard .sidenav .list-group-item.has-sub.open .nav-submenu {
  display: block;
}
body.fa-user-dashboard .sidenav .nav-submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 36px;
  border-radius: 10px;
  color: #4b5563;
  text-decoration: none;
}
body.fa-user-dashboard .sidenav .nav-submenu li a:hover {
  background: #f3f6fb;
}
body.fa-user-dashboard .sidenav .nav-submenu li.active a,
body.fa-user-dashboard .sidenav .nav-submenu li.active a:hover {
  background: rgba(74, 144, 226, 0.12);
  color: #2563eb;
}

/* 折叠态：只显示图标栏，不显示子菜单 */
body.fa-user-dashboard.fa-sidebar-collapsed .sidenav .nav-submenu {
  display: none !important;
}
body.fa-user-dashboard.fa-sidebar-collapsed .sidenav .nav-caret {
  display: none !important;
}
body.fa-user-dashboard.fa-sidebar-collapsed .sidenav .list-group-item a {
  justify-content: center;
  padding: 10px 0;
}
body.fa-user-dashboard.fa-sidebar-collapsed .sidenav .list-group-item a i {
  font-size: 16px;
}
body.fa-user-dashboard.fa-sidebar-collapsed .sidenav .list-group-item a span,
body.fa-user-dashboard.fa-sidebar-collapsed .sidenav .list-group-item a .nav-text {
  display: none;
}
/* 内容区卡片 */
body.fa-user-dashboard .panel {
  border-radius: 10px;
  border-color: #eef1f6;
}
body.fa-user-dashboard .panel .panel-body {
  padding: 18px;
}
body.fa-user-dashboard h2.page-header {
  margin: 0 0 14px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f4f9;
}

/* 个人信息：资料 + 修改密码 */
.user-info-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.user-info-panel .user-info-page-title {
  margin: 0 0 6px;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 18px;
}
.user-info-panel .user-info-page-desc {
  margin: 0 0 18px;
}

/* 与余额充值/卡密充值一致的主按钮 */
.btn-recharge-submit {
  border-radius: 6px;
  padding: 8px 14px;
  background: #4a90e2;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  min-width: 100px;
}
.btn-recharge-submit:hover,
.btn-recharge-submit:focus {
  background: #357abd;
  color: #fff;
}
.btn-recharge-submit.is-loading,
.btn-recharge-submit:disabled,
.btn-recharge-submit.disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-card-recharge-reset {
  border-radius: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  min-width: 80px;
}
.btn-card-recharge-reset:hover,
.btn-card-recharge-reset:focus {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}
.user-info-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 控制台壳：主区域留给 iframe，内边距由 .fa-console-frame 控制 */
body.fa-user-dashboard.fa-console-shell .fa-user-main {
  padding: 0;
}
/* 非控制台壳的会员页主内容区留白 */
body.fa-user-dashboard:not(.fa-console-shell) .fa-user-main {
  padding: 20px 24px 28px;
}
/* 顶栏：左侧标签可横向滚动，右侧菜单固定不被挤走 */
body.fa-user-dashboard #header-navbar {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
body.fa-user-dashboard #header-navbar::before,
body.fa-user-dashboard #header-navbar::after {
  display: none !important;
  content: none !important;
}
body.fa-user-dashboard #header-navbar > .fa-console-tabs-nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  width: auto;
  float: none !important;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  align-items: center;
  margin: 0;
}
body.fa-user-dashboard #header-navbar > .fa-console-tabs-nav::-webkit-scrollbar {
  height: 5px;
}
body.fa-user-dashboard #header-navbar > .fa-console-tabs-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
body.fa-user-dashboard #header-navbar > .navbar-nav.navbar-right {
  flex: 0 0 auto;
  float: none !important;
  margin-left: auto;
  white-space: nowrap;
}
body.fa-user-dashboard .fa-console-tabs-nav {
  display: flex;
  white-space: nowrap;
  align-items: center;
}
body.fa-user-dashboard .fa-console-tabs-nav > li > a {
  padding: 0 12px;
  height: var(--fa-topbar-height);
  line-height: calc(var(--fa-topbar-height) - 2px);
  border: 0;
  background: transparent;
}
body.fa-user-dashboard .fa-console-tabs-nav .fa-sidebar-collapse-item {
  order: -1;
  margin-right: 8px;
}
body.fa-user-dashboard .fa-console-tabs-nav .fa-sidebar-collapse-item .fa-sidebar-collapse {
  padding: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0, 123, 255, 0.08);
  color: #007bff;
  border-radius: 6px;
  transition: all 0.2s;
}
body.fa-user-dashboard .fa-console-tabs-nav .fa-sidebar-collapse-item .fa-sidebar-collapse:hover {
  background: rgba(0, 123, 255, 0.15);
}
body.fa-user-dashboard .fa-console-tabs-nav > li.active > a,
body.fa-user-dashboard .fa-console-tabs-nav > li.active > a:hover,
body.fa-user-dashboard .fa-console-tabs-nav > li.active > a:focus {
  background: rgba(0, 123, 255, 0.08);
}
body.fa-user-dashboard .fa-tab-close {
  display: inline-block;
  margin-left: 8px;
  font-size: 16px;
  line-height: 12px;
  opacity: 0.55;
}
body.fa-user-dashboard .fa-tab-link:hover .fa-tab-close {
  opacity: 0.9;
}
body.fa-user-dashboard .fa-console-frame {
  height: calc(100vh - var(--fa-topbar-height));
  background: #f6f8fb;
}
/* iframe 内嵌页（控制台标签页）内容与边缘留白 */
body.fa-embed-page {
  padding: 22px 28px 28px 30px !important;
}
body.fa-embed-page .dash-hero {
  margin-bottom: 22px;
}
body.fa-embed-page .dash-cards {
  margin-bottom: 22px;
}
body.fa-embed-page .dash-cards > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 14px;
}
body.fa-embed-page .dash-main > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 14px;
}
body.fa-embed-page .card-recharge-panel,
body.fa-embed-page .card-recharge-records,
body.fa-embed-page .card-buy-panel {
    margin-bottom: 18px;
}
body.fa-user-dashboard .fa-console-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f6f8fb;
  display: block;
}
/* 控制台壳页：禁止外层出现滚动条，只在 iframe 内滚动（如内容过高） */
body.fa-user-dashboard.fa-console-shell {
  overflow: hidden;
  height: 100vh;
  padding-top: var(--fa-topbar-height);
  box-sizing: border-box;
}
body.fa-user-dashboard.fa-console-shell main.content {
  overflow: hidden;
  padding: 0;
  min-height: 0;
  height: calc(100vh - var(--fa-topbar-height));
  max-height: calc(100vh - var(--fa-topbar-height));
}
body.fa-user-dashboard.fa-console-shell .fa-user-shell {
  min-height: 100%;
  height: 100%;
  max-height: 100%;
}
body.fa-user-dashboard.fa-console-shell .fa-user-main {
  height: 100%;
}
body.fa-user-dashboard.fa-console-shell .fa-console-frame {
  height: 100%;
}
@media (max-width: 991px) {
  .sidenav {
    position: fixed;
    top: 50px;
    z-index: 1029;
    height: calc(100vh - 50px);
    padding: 20px 0 20px 0;
    min-width: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 250px;
    left: -250px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  /* 会员中心移动端侧边栏覆盖通用样式，从顶部开始 */
  body.fa-user-dashboard .sidenav {
    top: 0 !important;
    height: 100vh !important;
    z-index: 1032 !important;
    padding: 0 !important;
    padding-bottom: 20px !important;
    left: -250px !important;
    width: 250px !important;
    -webkit-transition: left 0.3s ease !important;
    -moz-transition: left 0.3s ease !important;
    -o-transition: left 0.3s ease !important;
    transition: left 0.3s ease !important;
  }
  /* 移动端侧边栏打开时显示 - 最高优先级，确保高于右侧所有展开元素 */
  body.fa-user-dashboard.sidebar-open .sidenav,
  body.sidebar-open.fa-user-dashboard .sidenav {
    left: 0 !important;
    z-index: 99999 !important;
    box-shadow: 0 6px 27px rgba(0, 0, 0, 0.075) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  /* 确保侧边栏展开时，导航栏和所有下拉菜单都在侧边栏下方，并隐藏 */
  body.fa-user-dashboard.sidebar-open nav.navbar,
  body.sidebar-open.fa-user-dashboard nav.navbar {
    z-index: 1 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
  body.fa-user-dashboard.sidebar-open .navbar .dropdown-menu,
  body.sidebar-open.fa-user-dashboard .navbar .dropdown-menu {
    display: none !important;
    z-index: 1 !important;
  }
  /* 侧边栏展开时隐藏右侧主内容区 */
  body.fa-user-dashboard.sidebar-open .fa-user-main,
  body.sidebar-open.fa-user-dashboard .fa-user-main {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
  /* 侧边栏展开时隐藏所有右侧元素 */
  body.fa-user-dashboard.sidebar-open .fa-console-tabs-nav,
  body.sidebar-open.fa-user-dashboard .fa-console-tabs-nav {
    display: none !important;
  }
  .sidebar-toggle {
    display: block;
    position: fixed;
    right: 20px;
    bottom: 70px;
    border-radius: 50%;
    background: #eee;
    font-size: 22px;
    padding: 10px;
    line-height: 30px;
    height: 50px;
    width: 50px;
    text-align: center;
    z-index: 999999;
  }
}
body.sidebar-open .sidenav {
  left: 0;
  width: 250px;
  box-shadow: 0 6px 27px rgba(0, 0, 0, 0.075);
}
body.sidebar-open .sidebar-toggle i:before {
  content: "\f00d";
}

/* 新的登录注册页面样式 */
/* 重置FastAdmin的默认样式 - 使用类名选择器（兼容性更好） */
body.auth-page main.content,
body.auth-page .content,
main.content:has(.auth-container),
.content:has(.auth-container) {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100vh !important;
  overflow: visible !important;
}

/* 隐藏导航栏 */
body.auth-page nav.navbar,
body.auth-page .navbar-fixed-top,
body:has(.auth-container) nav.navbar,
body:has(.auth-container) .navbar-fixed-top {
  display: none !important;
}

/* 登录/注册页同样隐藏左上角 logo 区（console/会员中心专用） */
body.auth-page .fa-sidebar-top,
body:has(.auth-container) .fa-sidebar-top {
  display: none !important;
}

/* 重置body的padding-top */
body.auth-page {
  padding-top: 0 !important;
}

body:has(.auth-container) {
  padding-top: 0 !important;
}

.auth-container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: #1a1f3a;
  background-image: url('../img/bg-login.jpg');
  background-repeat: repeat;
  background-size: auto;
  background-position: 0 0;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 31, 58, 0.3);
  pointer-events: none;
  z-index: 0;
}

.auth-wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
}

/* 登录/注册卡片容器：把左右两块拼成一张卡 */
.auth-card {
  width: 100%;
  max-width: 1100px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* 左侧表单面板 */
.auth-form-panel {
  flex: 0 0 42%;
  background: #ffffff;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  min-width: 380px;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.auth-title {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-btn {
  background: #f5f5f5;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.language-btn:hover {
  background: #e8e8e8;
}

.language-btn i {
  font-size: 14px;
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 6px 0;
  display: none;
  z-index: 1000;
}

.language-menu li {
  margin: 0;
}

.language-menu li a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.language-menu li a:hover {
  background: #f5f5f5;
  color: #333;
}

.language-menu li a.active {
  background: #4a90e2;
  color: #fff;
}

/* 点击按钮打开下拉（避免鼠标滑动时消失） */
.language-dropdown.open .language-menu {
  display: block;
}

/* active项保持蓝色，即使hover也不变色 */
.language-menu li a.active:hover {
  background: #4a90e2;
  color: #fff;
}

.auth-form {
  flex: 1;
}

.auth-form .form-group {
  margin-bottom: 25px;
  display: block !important;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 15px;
  color: #999;
  font-size: 16px;
  z-index: 1;
}

.auth-input {
  width: 100%;
  padding: 14px 15px 14px 45px !important;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
  background: #fff;
  box-sizing: border-box;
}

.auth-input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.auth-input.error,
.auth-input:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

/* 移除FastAdmin默认的form-control样式影响 */
.auth-input.form-control {
  height: auto;
  display: block;
  width: 100%;
}

.checkbox-group {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  cursor: pointer;
  accent-color: #4a90e2;
  -webkit-appearance: checkbox;
  appearance: checkbox;
}

.checkbox-label input[type="checkbox"]:checked {
  background-color: #4a90e2;
  border-color: #4a90e2;
}

.btn-login,
.btn-register {
  width: 100%;
  padding: 14px;
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 15px;
  display: block;
  text-align: center;
  box-sizing: border-box;
}

.btn-login:hover,
.btn-register:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-register {
  background: #e74c3c;
}

.btn-register:hover {
  background: #c0392b;
}

.btn-back-login {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-back-login:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.register-link {
  text-align: center;
  margin-top: 20px;
}

.register-link a {
  color: #4a90e2;
  text-decoration: none;
  font-size: 14px;
}

.register-link a:hover {
  text-decoration: underline;
}

/* 移除错误图标 */
.error-icon {
  display: none !important;
}
.auth-input.error,
.auth-input.error[style*="padding-right"],
.auth-input[style*="padding-right"] {
  padding-right: 15px !important;
}

/* 确保所有输入框的padding正常 */
.auth-input {
  padding-right: 15px !important;
}

/* 移动端调整 */
@media (max-width: 576px) {
  .help-block {
    margin-top: 5px;
    font-size: 12px;
  }
  
  .auth-input.error {
    padding-right: 15px;
  }
}

/* 验证码组 - 输入框和图片分开显示 */
.captcha-group {
  margin-bottom: 25px;
}

/* 验证码输入框容器 - 保持与其他输入框一致 */
.captcha-group .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}

/* 验证码输入框图标 - 确保正确显示在左侧 */
.captcha-group .input-wrapper .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  z-index: 1;
}

/* 验证码输入框样式 - 与其他输入框完全一致 */
.captcha-group .input-wrapper input[name="captcha"] {
  width: 100%;
  padding: 14px 15px 14px 45px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
  transition: all 0.3s;
  position: relative;
}

.captcha-group .input-wrapper input[name="captcha"]:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.captcha-group .input-wrapper input[name="captcha"].error,
.captcha-group .input-wrapper input[name="captcha"]:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

/* 验证码图片/按钮容器 - 显示在输入框下方 */
.captcha-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: 0;
  width: 100%;
}

.captcha-image-wrapper img {
  cursor: pointer;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 8px;
  height: 46px;
  flex-shrink: 0;
}

.captcha-image-wrapper .captcha-refresh {
  margin-left: 10px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.captcha-image-wrapper .captcha-refresh:hover {
  color: rgba(0, 0, 0, 0.8);
  text-decoration: underline;
}

.captcha-image-wrapper .btn-captcha {
  padding: 0 20px;
  white-space: nowrap;
  background: #4a90e2;
  color: #fff;
  border: none;
  font-size: 14px;
  height: 46px;
  line-height: 46px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.captcha-image-wrapper .btn-captcha:hover {
  background: #357abd;
  color: #fff;
  text-decoration: none;
}

/* 右侧信息面板 */
.auth-info-panel {
  flex: 0 0 58%;
  background: linear-gradient(135deg, #4a90e2 0%, #6b5b95 100%);
  padding: 60px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.auth-info-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30"><circle cx="15" cy="15" r="1.5" fill="white" opacity="0.2"/></svg>');
  background-size: 30px 30px;
  opacity: 0.3;
}

.info-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.info-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.info-icon {
  font-size: 48px;
  opacity: 1.0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-icon i {
  transform: rotate(45deg);
  display: block;
}

.info-description {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.95;
}

.info-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.info-features li {
  font-size: 15px;
  line-height: 2;
  padding-left: 25px;
  position: relative;
  opacity: 0.9;
}

.info-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  font-size: 20px;
}

.info-domain {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
}

.info-support {
  margin: 12px 0 0;
  font-size: 14px;
}

.info-support a {
  color: #fff;
  text-decoration: underline;
  opacity: 0.95;
}

.info-support a:hover {
  opacity: 1;
}

/* 响应式设计 */
@media (max-width: 991px) {
  .auth-wrapper {
    padding: 20px;
    min-height: auto;
  }

  .auth-card {
    max-width: 520px;
  }

  .auth-form-panel {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
    padding: 40px 30px;
  }

  /* 手机/平板：右侧信息面板不需要 */
  .auth-info-panel {
    display: none !important;
  }
  
  .info-title {
    font-size: 28px;
  }
  
  .info-icon {
    font-size: 36px;
  }
}

@media (max-width: 576px) {
  .content .auth-container {
    position: relative;
    height: auto;
  }
  
  .auth-wrapper {
    padding: 10px;
  }

  .auth-card {
    max-width: 100%;
  }
  
  .auth-form-panel {
    padding: 30px 25px;
  }
  
  .auth-title {
    font-size: 24px;
  }
}
/*# sourceMappingURL=user.css.map */
/* 会员中心移动端顶部菜单：从右侧展开，避免整行导航覆盖内容 */
@media (max-width: 767px) {
  body.fa-user-dashboard #header-navbar.collapse,
  body.fa-user-dashboard #header-navbar.collapsing {
    position: fixed;
    top: var(--fa-topbar-height, 50px);
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 1040;
    display: block !important;
    width: min(280px, 82vw);
    max-width: 82vw;
    height: calc(100vh - var(--fa-topbar-height, 50px)) !important;
    max-height: none;
    margin: 0;
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    visibility: hidden;
    background: #fff;
    border: 0;
    border-left: 1px solid #e5edf8;
    box-shadow: -12px 12px 32px rgba(30, 64, 175, .12);
    transform: translateX(100%);
    transition: transform .24s ease, visibility .24s ease;
    pointer-events: none;
  }

  body.fa-user-dashboard #header-navbar.collapse.in {
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  body.fa-user-dashboard #header-navbar::before,
  body.fa-user-dashboard #header-navbar::after {
    display: none !important;
    content: none !important;
  }

  body.fa-user-dashboard #header-navbar > .navbar-nav.navbar-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    white-space: normal;
  }

  body.fa-user-dashboard #header-navbar > .navbar-nav.navbar-right > li {
    float: none;
    width: 100%;
    margin: 0 0 6px;
  }

  body.fa-user-dashboard #header-navbar > .navbar-nav.navbar-right > li > a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    color: #315b8a;
    text-align: left;
    border-radius: 9px;
  }

  body.fa-user-dashboard #header-navbar > .navbar-nav.navbar-right > li > a:hover,
  body.fa-user-dashboard #header-navbar > .navbar-nav.navbar-right > li > a:focus,
  body.fa-user-dashboard #header-navbar > .navbar-nav.navbar-right > li.open > a {
    color: #1677ff;
    background: #eff6ff;
  }

  body.fa-user-dashboard #header-navbar > .navbar-nav.navbar-right > li > a .fa {
    width: 22px;
    margin-right: 8px;
    color: #1677ff;
    text-align: center;
  }

  body.fa-user-dashboard #header-navbar .avatar-img {
    margin-right: 8px;
  }

  body.fa-user-dashboard #header-navbar .dropdown-menu {
    width: 100%;
    margin: 4px 0 0;
    padding: 6px;
    background: #f8fbff;
    border: 1px solid #e5edf8;
    border-radius: 9px;
    box-shadow: none;
  }

  body.fa-user-dashboard #header-navbar .dropdown-menu > li > a {
    padding: 10px 12px;
    color: #4b6584;
    border-radius: 7px;
  }
}