/* ============================================================================
   金水方后台 · 科技感主题（纯样式覆盖，不改任何页面结构与业务逻辑）
   主色：深空蓝 + 青绿渐变；层次：卡片圆角 + 柔和投影 + 轻微悬浮动效
   ============================================================================ */

/* ---------------- 侧边栏：深空渐变 + 选中发光 ---------------- */
.sidebar-container {
  background: linear-gradient(180deg, #08152e 0%, #102a5c 60%, #0a1f45 100%) !important;
  box-shadow: 2px 0 18px rgba(9, 24, 40, .28);
}
.sidebar-container .logo-container,
.sidebar-container .el-scrollbar,
.sidebar-container .scrollbar-wrapper {
  background: transparent !important;
}
.sidebar-container .el-menu {
  background: transparent !important;
  border-right: none !important;
}

/* 覆盖页面自带的扁平底色，让菜单融进整体渐变 */
.sidebar-container .el-menu-item,
.sidebar-container .el-submenu__title,
.sidebar-container .nest-menu .el-submenu > .el-submenu__title {
  background-color: transparent !important;
}
.sidebar-container .el-menu--inline .el-menu-item,
.sidebar-container .nest-menu .el-menu-item {
  background-color: rgba(255, 255, 255, .04) !important;
}
.sidebar-container .sidebar-logo-container,
.sidebar-container .sidebar-logo-container.collapse {
  background: rgba(255, 255, 255, .04) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sidebar-container .el-menu-item,
.sidebar-container .el-submenu__title {
  color: #c3d3e6 !important;
  margin: 4px 10px;
  border-radius: 10px;
  height: 46px;
  line-height: 46px;
  transition: all .22s ease;
}
.sidebar-container .el-menu-item:hover,
.sidebar-container .el-submenu__title:hover {
  background: rgba(26, 92, 255, .16) !important;
  color: #ffffff !important;
}
.sidebar-container .el-menu-item.is-active,
.sidebar-container .el-submenu.is-active > .el-submenu__title {
  background: linear-gradient(90deg, rgba(26,92,255,.95), rgba(127,176,255,.85)) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(26, 92, 255, .35);
  font-weight: 600;
}
.sidebar-container .el-menu-item i,
.sidebar-container .el-submenu__title i {
  color: inherit !important;
}
.sidebar-container .el-submenu .el-menu {
  background: rgba(255, 255, 255, .03) !important;
}
.sidebar-container .el-menu-item.is-active::after {
  content: '';
  position: absolute;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff;
}

/* ---------------- 顶栏：毛玻璃 + 细渐变线 ---------------- */
.navbar {
  background: rgba(255, 255, 255, .88) !important;
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #e3ebf8 !important;
  box-shadow: 0 2px 12px rgba(23, 52, 94, .06);
}
.navbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #1a5cff, #7fb0ff, transparent);
  opacity: .65;
}
.hamburger-container:hover,
.right-menu-item:hover {
  background: rgba(26, 92, 255, .08) !important;
}
.avatar-container .avatar-wrapper:hover {
  background: rgba(26, 92, 255, .08) !important;
}

/* ---------------- 内容区：浅色科技底纹 ---------------- */
.app-main {
  background:
    radial-gradient(1200px 400px at 100% -10%, rgba(26,92,255,.08), transparent 60%),
    radial-gradient(900px 400px at -10% 10%, rgba(127,176,255,.08), transparent 55%),
    #f3f7ff !important;
}
.app-container {
  padding: 18px !important;
}

/* ---------------- 卡片与区块 ---------------- */
.el-card {
  border: 1px solid #e3ebf8 !important;
  border-radius: 12px !important;
  box-shadow:  !important;
  transition: box-shadow .25s ease, transform .25s ease;
  overflow: hidden;
}
.el-card:hover {
  box-shadow:  !important;
  transform: translateY(-2px);
}
.el-card__header {
  border-bottom: 1px solid #e3ebf8 !important;
  font-weight: 600;
  color: #1f2d3d;
  background: linear-gradient(180deg, #fbfdff, #f6f9ff);
}

/* 页面里大量直接使用的白色块，统一成卡片观感 */
.app-container > div:not([class*='el-']) {
  border-radius: 12px;
}

/* ---------------- 表格 ---------------- */
.el-table {
  border-radius: 10px;
  overflow: hidden;
  color: #1f2d3d;
}
.el-table th.el-table__cell {
  background: linear-gradient(180deg, #f4f8ff, #e8f0ff) !important;
  color: #2b3a4f !important;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid #dbe6fb !important;
}
.el-table td.el-table__cell {
  border-bottom: 1px solid #eef4fd !important;
}
.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
  background: rgba(26, 92, 255, .06) !important;
}
.el-table::before,
.el-table--group::after,
.el-table--border::after {
  background-color: transparent !important;
}

/* ---------------- 按钮 ---------------- */
.el-button {
  border-radius: 8px !important;
  transition: all .2s ease;
}
.el-button--primary {
  background: linear-gradient(135deg, #1a5cff, #5b93ff) !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(26, 92, 255, .28);
}
.el-button--primary:hover,
.el-button--primary:focus {
  background: linear-gradient(135deg, #1348e0, #4b87ff) !important;
  box-shadow: 0 6px 18px rgba(26, 92, 255, .4);
  transform: translateY(-1px);
}
.el-button--success {
  background: linear-gradient(135deg, #2f7dff, #5b93ff) !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(18, 184, 134, .26);
}
.el-button--warning {
  background: linear-gradient(135deg, #f0a020, #ffbe4d) !important;
  border: none !important;
}
.el-button--danger {
  background: linear-gradient(135deg, #e5484d, #ff6b6b) !important;
  border: none !important;
}
.el-button--text,
.el-button--small.is-link,
.el-button--mini.is-link {
  color: #1a5cff !important;
}

/* ---------------- 表单控件 ---------------- */
.el-input__inner,
.el-textarea__inner,
.el-input-group__append,
.el-input-group__prepend {
  border-radius: 8px !important;
  border-color: #dbe4f1 !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.el-input__inner:focus,
.el-textarea__inner:focus {
  border-color: #1a5cff !important;
  box-shadow: 0 0 0 3px rgba(26, 92, 255, .12) !important;
}
.el-form-item__label {
  color: #445267 !important;
  font-weight: 500;
}
.el-select .el-input.is-focus .el-input__inner {
  border-color: #1a5cff !important;
}

/* ---------------- 标签 / 状态 ---------------- */
.el-tag {
  border-radius: 20px !important;
  border: none !important;
  padding: 0 10px;
  font-weight: 500;
}
.el-tag--success { background: rgba(18, 184, 134, .12) !important; color: #0f9d76 !important; }
.el-tag--danger  { background: rgba(229, 72, 77, .12)  !important; color: #d43a3f !important; }
.el-tag--warning { background: rgba(240, 160, 32, .14) !important; color: #c47d0a !important; }
.el-tag--info    { background: rgba(26, 92, 255, .10) !important; color: #3f6bd0 !important; }

/* ---------------- 分页 ---------------- */
.el-pagination.is-background .el-pager li,
.el-pagination .btn-prev, .el-pagination .btn-next {
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid #e3ebf8;
  color: #4a5a72;
}
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background: linear-gradient(135deg, #1a5cff, #5b93ff) !important;
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(26, 92, 255, .3);
}

/* ---------------- 弹窗 / 抽屉 ---------------- */
.el-dialog {
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(16, 34, 60, .22) !important;
}
.el-dialog__header {
  padding: 18px 22px !important;
  border-bottom: 1px solid #e3ebf8;
  background: linear-gradient(180deg, #fbfdff, #f4f8ff);
}
.el-dialog__title { font-weight: 600; color: #1f2d3d; }
.el-drawer__header { border-bottom: 1px solid #e3ebf8; margin-bottom: 0; }
.el-message-box { border-radius: 14px !important; }
.el-alert { border-radius: 10px !important; }

/* ---------------- 标签页 ---------------- */
.el-tabs__item.is-active { color: #1a5cff !important; font-weight: 600; }
.el-tabs__active-bar { background: linear-gradient(90deg, #1a5cff, #7fb0ff) !important; height: 3px; border-radius: 3px; }
.el-tabs__nav-wrap::after { height: 1px; background: #e3ebf8; }

/* ---------------- 滚动条 ---------------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c8d6ea, #b3c6e2);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: #9db4d6; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 首页数字与大标题：渐变科技感 ---------------- */
.hometop {
  font-size: 20px;
  font-weight: 700;
  color: #1f2d3d;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hometop > span:first-child {
  padding-left: 14px;
  position: relative;
}
.hometop > span:first-child::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #1a5cff, #7fb0ff);
  box-shadow: 0 0 12px rgba(26, 92, 255, .5);
}
.grid-content,
.grid-content-notice {
  background: #ffffff !important;
  border: 1px solid #e3ebf8 !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  box-shadow: 0 6px 20px rgba(23, 52, 94, .08) !important;
  transition: box-shadow .25s ease, transform .25s ease;
}
.grid-content:hover,
.grid-content-notice:hover {
  box-shadow: 0 12px 30px rgba(23, 52, 94, .14);
  transform: translateY(-2px);
}
.homeTitle {
  font-weight: 600 !important;
  color: #1f2d3d !important;
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
  border-bottom: 1px solid #eaf1fc !important;
}
.homeList li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 2px;
  border-bottom: 1px dashed #eaf1fb;
}
.homeList li:last-child { border-bottom: none; }
.homeList li span:last-child {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #1a5cff, #7fb0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rankList li { padding: 8px 2px; border-bottom: 1px dashed #eaf1fb; }
.rank-num, .rankList .top3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px; height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a5cff, #7fb0ff);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(26, 92, 255, .3);
}
.homeBtn button, .homeBtn .el-button {
  border-radius: 20px !important;
}
.noticeList li {
  display: flex;
  justify-content: space-between;
  padding: 9px 2px;
  border-bottom: 1px dashed #eaf1fb;
  cursor: pointer;
}
.noticeList li:hover { color: #1a5cff; }
.scroll-container {
  border: 1px solid #eaf1fc;
  border-radius: 10px;
}

/* ---------------- 顶部面包屑与下拉 ---------------- */
.el-breadcrumb__inner { color: #7a8ba3 !important; }
.el-dropdown-menu__item:hover { background: rgba(26, 92, 255, .08) !important; color: #1a5cff !important; }

/* ---------------- 悬浮提示 ---------------- */
.el-tooltip__popper.is-dark {
  background: rgba(11, 26, 43, .92) !important;
  border-radius: 8px !important;
}

/* ---------------- 左上角品牌区 ---------------- */
.sidebar-logo-container,
.sidebar-logo-container.collapse {
  height: 64px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
}
.sidebar-logo-container .sidebar-logo-link {
  height: 64px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}
.sidebar-logo-container .sidebar-logo {
  height: 32px !important;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 3px 10px rgba(26, 92, 255, .45));
}
/* 去掉"您好！xxx，欢迎登录"这行字 */
.sidebar-logo-container .sidebar-title {
  display: none !important;
}
/* 品牌区右侧的小标记 */
.sidebar-logo-container:not(.collapse) .sidebar-logo-link::after {
  content: 'AI';
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1px;
  padding: 4px 6px;
  border-radius: 6px;
  color: #d8e6ff;
  background: linear-gradient(135deg, rgba(26, 92, 255, .55), rgba(127, 176, 255, .45));
  border: 1px solid rgba(127, 176, 255, .5);
  box-shadow: 0 2px 10px rgba(26, 92, 255, .35);
}
/* 折叠状态：图标做成渐变方块 */
.sidebar-logo-container.collapse .sidebar-logo {
  display: none;
}
.sidebar-logo-container.collapse .el-icon-chat-square {
  font-size: 20px;
  padding: 9px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #1a5cff, #7fb0ff);
  box-shadow: 0 4px 14px rgba(26, 92, 255, .45);
}

/* ---------------- 右上角功能入口 ---------------- */
.navbar .right-menu {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
}
.navbar .right-menu .icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 18px;
  font-size: 13px;
  color: #42506a !important;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.navbar .right-menu .icon i {
  font-size: 15px;
  color: #1a5cff;
}
.navbar .right-menu .icon:hover {
  background: rgba(26, 92, 255, .09);
  border-color: rgba(26, 92, 255, .22);
  color: #1a5cff !important;
  transform: translateY(-1px);
}
.navbar .right-menu .icon:last-child:hover {
  background: rgba(229, 72, 77, .09);
  border-color: rgba(229, 72, 77, .22);
  color: #d43a3f !important;
}
.navbar .right-menu .icon:last-child:hover i {
  color: #d43a3f;
}
