/* ===== 带你游 管理后台 UI 美化 ===== */

/* 1. 全局配色 - 现代蓝紫色系 */
:root {
  --el-color-primary: #5B7FFF;
  --el-color-primary-light-3: #7B97FF;
  --el-color-primary-light-5: #9DB3FF;
  --el-color-primary-light-7: #C2D0FF;
  --el-color-primary-light-8: #D6E0FF;
  --el-color-primary-light-9: #EBF0FF;
  --el-color-primary-dark-2: #4866CC;
  --el-color-success: #34C759;
  --el-color-success-light-3: #6ED98A;
  --el-color-warning: #FF9500;
  --el-color-warning-light-3: #FFB340;
  --el-color-danger: #FF3B30;
  --el-color-danger-light-3: #FF6E66;
  --el-color-info: #8E8E93;
  --el-border-radius-base: 10px;
  --el-border-radius-small: 6px;
  --el-border-radius-round: 24px;
  --el-font-size-extra-large: 20px;
  --el-font-size-large: 17px;
  --el-font-size-medium: 15px;
  --el-font-size-base: 14px;
  --el-font-size-small: 13px;
  --el-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --el-font-weight-primary: 500;
  --el-transition-duration: 0.25s;
  --el-component-size: 36px;
  --el-component-size-large: 42px;
}

/* 2. 整体背景微调 */
body {
  background: #f0f2f8 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 3. 侧边栏 - 暗黑风格 */
.el-menu {
  border-right: none !important;
  background: #1e1e2d !important;
  color: #9899ac !important;
}
/* 菜单项 */
.el-menu-item {
  margin: 3px 8px;
  border-radius: 8px !important;
  transition: all 0.2s ease;
  color: #9899ac !important;
  background: transparent !important;
}
.el-menu-item:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
  transform: translateX(2px);
}
.el-menu-item.is-active {
  background: linear-gradient(135deg, #5B7FFF, #4A6FEF) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(91,127,255,0.3);
}
/* 子菜单 */
.el-sub-menu__title {
  color: #9899ac !important;
  background: transparent !important;
  margin: 3px 8px;
  border-radius: 8px !important;
  transition: all 0.2s ease;
}
.el-sub-menu__title:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
}
.el-sub-menu__title i {
  color: #9899ac !important;
}
/* 子菜单展开的项 */
.el-menu--inline {
  background: rgba(0,0,0,0.2) !important;
}
.el-menu--inline .el-menu-item {
  padding-left: 56px !important;
  color: #7e8299 !important;
}
.el-menu--inline .el-menu-item:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.04) !important;
}
.el-menu--inline .el-menu-item.is-active {
  background: rgba(91,127,255,0.2) !important;
  color: #fff !important;
}
/* 图标颜色 */
.el-menu-item i, .el-sub-menu__title i {
  color: #9899ac !important;
}
.el-menu-item:hover i, .el-sub-menu__title:hover i {
  color: #fff !important;
}
.el-menu-item.is-active i {
  color: #fff !important;
}
/* 收起状态 */
.el-menu--collapse .el-menu-item {
  padding: 0 !important;
  justify-content: center;
}

/* 4. 卡片美化 */
.el-card {
  border-radius: 14px !important;
  border: none !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02) !important;
  transition: box-shadow 0.3s ease;
}
.el-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03) !important;
}
.el-card__header {
  border-bottom: 1px solid #f0f2f5 !important;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 20px !important;
}
.el-card__body {
  padding: 20px !important;
}

/* 5. 表格美化 */
.el-table {
  border-radius: 10px;
  overflow: hidden;
}
.el-table th.el-table__cell {
  background: #f8f9fc !important;
  font-weight: 600;
  color: #4a5568;
  border-bottom: 2px solid #e8ecf1 !important;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.el-table .el-table__row:hover > td {
  background: rgba(91,127,255,0.03) !important;
}
.el-table td.el-table__cell {
  border-bottom: 1px solid #f0f2f5 !important;
  padding: 12px 0;
}
.el-table--striped .el-table__body tr.el-table__row--striped td {
  background: #fafbfd;
}

/* 6. 按钮美化 */
.el-button {
  border-radius: 8px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.el-button--primary {
  background: linear-gradient(135deg, #5B7FFF, #4A6FEF) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(91,127,255,0.25);
}
.el-button--primary:hover {
  background: linear-gradient(135deg, #6B8FFF, #5A7FFF) !important;
  box-shadow: 0 4px 14px rgba(91,127,255,0.35);
  transform: translateY(-1px);
}
.el-button--success {
  background: linear-gradient(135deg, #34C759, #28B04B) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(52,199,89,0.25);
}
.el-button--danger {
  background: linear-gradient(135deg, #FF3B30, #E8342B) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(255,59,48,0.2);
}
.el-button--warning {
  background: linear-gradient(135deg, #FF9500, #E68600) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(255,149,0,0.2);
}

/* 7. 输入框美化 */
.el-input__wrapper {
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
  transition: all 0.2s ease;
}
.el-input__wrapper:hover {
  box-shadow: 0 2px 6px rgba(91,127,255,0.1) !important;
}
.el-input.is-focus .el-input__wrapper {
  box-shadow: 0 0 0 2px rgba(91,127,255,0.15) !important;
}

/* 8. 对话框美化 */
.el-dialog {
  border-radius: 16px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12) !important;
}
.el-dialog__header {
  padding: 20px 24px 0 !important;
  font-weight: 700;
  font-size: 18px;
}
.el-dialog__body {
  padding: 20px 24px !important;
}
.el-dialog__footer {
  padding: 12px 24px 20px !important;
}

/* 9. 标签/徽章美化 */
.el-tag {
  border-radius: 6px !important;
  font-weight: 500;
}
.el-badge__content {
  border-radius: 10px !important;
}

/* 10. 分页美化 */
.el-pagination .el-pager li {
  border-radius: 6px !important;
}
.el-pagination .el-pager li.is-active {
  background: var(--el-color-primary) !important;
  box-shadow: 0 2px 6px rgba(91,127,255,0.3);
}

/* 11. 面包屑美化 */
.el-breadcrumb__inner {
  font-weight: 500 !important;
}

/* 12. 开关美化 */
.el-switch.is-checked .el-switch__core {
  background: var(--el-color-primary) !important;
  border-color: var(--el-color-primary) !important;
}

/* 13. 下拉菜单美化 */
.el-dropdown-menu__item:hover {
  background: rgba(91,127,255,0.06) !important;
}

/* 14. Tabs 美化 */
.el-tabs__item {
  font-weight: 500;
}
.el-tabs__active-bar {
  height: 3px !important;
  border-radius: 2px;
}

/* 15. 统计卡片美化 */
.stat-card {
  background: linear-gradient(135deg, #fff, #f8f9ff) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04) !important;
}

/* 16. 页面标题美化 */
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.02em;
}

/* 17. 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.2);
}

/* 18. 导航标签美化 */
.el-menu--horizontal {
  border-bottom: none !important;
}

/* 侧边栏 Logo 区域 */
.el-menu .sidebar-logo,
.el-menu > .logo,
.sidebar-logo {
  padding: 20px 16px;
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  letter-spacing: 0.05em;
}
