
:root {
    --primary-color: #28a745;
    --secondary-color: #20c997;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --sidebar-width: 250px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
    color: inherit; 
}
/* 方法1：直接移除下划线 */
.text-element {
    text-decoration: none;
}

/* 方法2：针对链接元素 */
a {
    text-decoration: none;
}

/* 方法3：仅在悬停时去除下划线 */
.text-element:hover {
    text-decoration: none;
}
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f8f9fa;
    line-height: 1.6;
    align-items: center;
    padding: 0px;
    margin: 0;
}
.container-box {
     
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin: 20px auto;
    background: white;
    border-radius: 8px;
     overflow: hidden;
}
.main-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    height: 100vh;
}
/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    flex-direction: column;
}
.logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}
.menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}
.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}
.menu-item:hover, .menu-item.active {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}
.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}
.user-info {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}
.logout{
    padding: 15px;
    align-items: center;
    color: #000;
    font-size: 12px;
}
.fa-sign-out-alt {
    margin-left: auto;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s; 
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}
/* 确保页脚在底部 */
footer {
    margin: 0 auto;
    padding: 15px 0 ;
    text-align: center;
    position: fixed;
    bottom: 15px;
    width: 100%;
     
  }
  :root {
    --primary-color: #28a745;
    --secondary-color: #20c997;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --sidebar-width: 250px;
  }