/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f0f2f5;
}

/* 顶部导航样式 */
.admin-header {
    height: 60px;
    background: linear-gradient(135deg, #1890ff, #1677ff);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    color: #fff;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
}

.header-right .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.user-info .logout {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.user-info .logout:hover {
    opacity: 1;
}

/* 主容器样式 */
.admin-container {
    display: flex;
    margin-top: 60px;
    height: calc(100vh - 60px);
}

/* 左侧菜单样式 */
.menu {
    width: 220px;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    height: 100%;
    overflow-y: auto;
}

.menu ul {
    list-style: none;
    padding: 12px 0;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #595959;
    text-decoration: none;
    transition: all 0.3s;
    gap: 12px;
    font-size: 14px;
}

.menu-item.active a {
    color: #1890ff;
    background: #e6f7ff;
    border-right: 3px solid #1890ff;
}

.menu-item a:hover {
    color: #1890ff;
    background: rgba(230,247,255,0.6);
}

/* 右侧内容区样式 */
.content {
    flex: 1;
    padding: 24px;
    overflow: auto;
}

#contentFrame {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.avatar i {
    font-size: 24px;
}