/* PC管理后台全局样式 - 基础层 */
/* 美化样式已迁移至 admin-v2.css，此文件仅保留基础布局定义 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: #333333;
  background-color: #f0f2f5;
}

/* 布局容器 */
.admin-container {
  height: 100vh;
}

/* 侧边栏 - 基础结构 */
.aside {
  transition: width 0.3s;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.menu-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.menu-wrap .el-menu {
  flex: 1;
  overflow-y: auto;
}

/* 侧边栏底部用户信息+退出 */
.sidebar-user {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-username {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-logout-btn {
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Logo */
.logo {
  height: 60px;
  line-height: 60px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
}

.logo img {
  width: 32px;
  height: 32px;
}

.collapse-btn {
  font-size: 20px;
  cursor: pointer;
  margin-left: auto;
}

.el-menu {
  border-right: none;
}

.el-menu:not(.el-menu--collapse) {
  width: 220px;
}

/* 头部 */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* 主内容区 */
.main {
  padding: 20px;
  overflow-y: auto;
}

.content-frame {
  width: 100%;
  height: calc(100vh - 100px);
  border: none;
}

/* 仪表盘 */
.dashboard {
  min-height: calc(100vh - 100px);
}

/* 统计卡片 - 基础结构 */
.stat-row {
  margin-bottom: 20px;
}

.stat-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ffffff;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
}

/* 面板 */
.panel {
  margin-bottom: 20px;
}

.panel-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

.panel-body {
  padding: 20px;
}

/* 快捷操作 */
.quick-action .panel-body {
  display: flex;
  gap: 10px;
}

/* 系统信息 */
.system-info p {
  margin-bottom: 15px;
  font-size: 14px;
}

.system-info p:last-child {
  margin-bottom: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .el-aside {
    width: 64px !important;
  }

  .header {
    padding: 0 10px;
  }
}
