/* ============================================================
 * shell-redesign.css — 时光云控制台外壳重设计（huiyuan_clientatea2）
 * 风格：silly-panda 白卡片浮动风
 * 原则：只做视觉覆盖，不改 DOM 结构和 JS 逻辑
 * ============================================================ */

/* ---- 全局背景 ---- */
html, body {
  background: #f3f5f9 !important;
}

/* ---- 侧边栏：白色圆角浮动卡片 ---- */
.el-aside {
  width: 220px !important;
  background: #ffffff !important;
  margin: 12px 0 12px 12px;
  padding: 14px 10px !important;
  height: calc(100vh - 24px) !important;
  border-radius: 18px;
  border: 1px solid #eef0f4 !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04) !important;
  overflow-y: auto;
  overflow-x: hidden;
  position: sticky;
  top: 12px;
}
.el-aside::-webkit-scrollbar { width: 4px; }
.el-aside::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }
.el-aside::-webkit-scrollbar-track { background: transparent; }

/* Logo */
.ali-logo {
  height: 30px !important;
  max-width: 140px !important;
  margin: 4px auto 16px !important;
}

/* 菜单组 */
.menu-top {
  margin-top: 4px !important;
}

/* 分隔线（此模板类名是 shiwai-line） */
.shiwai-line, .line {
  width: auto !important;
  height: 1px !important;
  background: #f0f1f4 !important;
  border: none !important;
  opacity: 1 !important;
  margin: 10px 10px !important;
}

/* ---- 菜单项 ---- */
.menu-top .el-menu-item,
.menu-top .el-submenu__title {
  height: 42px !important;
  line-height: 42px !important;
  border-radius: 12px !important;
  margin-bottom: 3px;
  border: 1px solid transparent !important;
  color: #374151 !important;
  transition: all .3s cubic-bezier(.4,0,.2,1) !important;
}
.menu-top .el-menu-item i,
.menu-top .el-submenu__title i {
  color: #6b7280 !important;
  font-size: 18px !important;
  transition: all .3s ease !important;
}
.menu-top .aside-menu-text {
  margin-left: 12px !important;
  font-size: 14px;
  font-weight: 500;
}

/* hover */
.menu-top .el-menu-item:hover,
.menu-top .el-submenu__title:hover {
  background: transparent !important;
  color: #3b82f6 !important;
}
.menu-top .el-menu-item:hover i,
.menu-top .el-submenu__title:hover i {
  color: #60a5fa !important;
  transform: scale(1.18);
}

/* 选中态 */
.menu-top .el-menu-item.is-active {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #3b82f6 !important;
  box-shadow: 0 6px 16px -4px rgba(59, 130, 246, 0.18), 0 2px 6px -2px rgba(15, 23, 42, 0.06) !important;
}
.menu-top .el-menu-item.is-active i {
  color: #3b82f6 !important;
  transform: scale(1.18);
}
.menu-top .el-menu-item.is-active .aside-menu-text {
  font-weight: 600;
}

/* 二级菜单 */
.menu-top .el-submenu .el-menu-item {
  min-width: auto !important;
  height: 38px !important;
  line-height: 38px !important;
  padding-left: 38px !important;
}

/* ---- 顶栏 ---- */
.el-header {
  top: 12px !important;
  left: 244px !important;
  right: 12px !important;
  width: auto !important;
  height: 56px !important;
  background: #ffffff !important;
  border-radius: 16px;
  border: 1px solid #eef0f4;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  backdrop-filter: none !important;
  padding: 0 18px !important;
  z-index: 900;
}

/* 顶栏图标 hover */
.header-right .right-item,
.header-right .header-right-item {
  transition: all .3s ease;
}
.header-right .right-item:hover img,
.header-right .right-item:hover svg {
  transform: scale(1.18);
}
.header-right .right-item img,
.header-right .right-item svg {
  transition: transform .3s ease;
}

/* ---- 内容区 ---- */
.el-main {
  background: transparent !important;
  padding-top: 92px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  padding-bottom: 24px !important;
}

.main-card, .el-card {
  border-radius: 16px !important;
}

/* ---- 响应式 ≤750px ---- */
@media screen and (max-width: 750px) {
  .el-aside { display: none !important; }
  .el-header {
    top: 12px !important; left: 12px !important; right: 12px !important;
    width: auto !important; height: 52px !important;
  }
  .el-main {
    padding-top: 80px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .drawer-menu { background: #ffffff !important; }
  .drawer-menu-list-top .menu-top .el-menu-item,
  .drawer-menu-list-top .menu-top .el-submenu__title { color: #374151 !important; }
  .drawer-menu-list-top .menu-top .el-menu-item i,
  .drawer-menu-list-top .menu-top .el-submenu__title i { color: #6b7280 !important; }
  .drawer-menu-list-top .menu-top .el-menu-item.is-active {
    background: #f0f5ff !important; color: #3b82f6 !important;
  }
}
