body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    justify-content: flex-start;
    

}
.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;
    height: 100vh;
    margin: 0;
    padding: 0;
    transition: width 0.3s ease;
  }
  
/* 加载状态样式 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--primary-color);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 错误状态样式 */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  text-align: center;
  color: #dc3545;
}

.error-container i {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* 页面容器样式 */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding: 20px 0;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background: #f8f9fa;
  display: flex;
  min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
  width: var(--sidebar-width);
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  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;
}

.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;
}

/* 主内容区域 */
 

/* iframe样式 */
iframe {
  border: none;
  display: block;
}

/* 响应式设计 */
@media (max-width: 992px) {
  body {
      flex-direction: column;
  }
  .sidebar {
      width: 100%;
      height: auto;
  }
  .menu {
      display: flex;
      overflow-x: auto;
      padding: 10px 0;
  }
  .menu-item {
      padding: 10px 15px;
      white-space: nowrap;
  }
}
/* 会员中心导航菜单样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.nav-container {
  width: 240px;
   height: 1005;
  position: fixed;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
 }

.member-logo {
  padding: 20px 15px;
  text-align: center;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 10px;
}

.member-logo h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #495057;
}

.member-menu {
  list-style: none;
  padding: 0 ;
  margin: 0;
}

.member-menu-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 5px;
}

.member-menu-item:hover {
  background-color: #e9ecef;
  color: #212529;
}

.member-menu-item.active {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
}
.member-menu-item.active i {
  color: var(--primary-color);
}

.member-menu-item i {
  width: 22px;
  margin-right: 10px;
  text-align: center;
  font-size: 1rem;
  color: #6c757d;
}



.has-submenu > .member-menu-item::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-left: auto;
  font-size: 0.8rem;
  color: #6c757d;
  transition: all 0.3s ease;
}

.has-submenu.active > .member-menu-item::after {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.member-submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f8f9fa;
  border-radius: 6px;
  margin: 5px 0;
}

.has-submenu.active .member-submenu {
  max-height: 500px;
}

.member-submenu-item {
  padding: 10px 15px 10px 42px;
  display: block;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 4px;
  font-size: 0.9rem;
}

.member-submenu-item:hover {
  background-color: #e9ecef;
  color: #212529;
}

.member-submenu-item.active {
  color: var(--primary-color);
  font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .nav-container {
      transform: translateX(-100%);
      width: 220px;
      z-index: 1000;
  }
  
  .nav-container.active {
      transform: translateX(0);
  }
}
:root {
  --primary-color: #28a745;
  --secondary-color: #20c997;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-color: #dee2e6;
  --sidebar-width: 250px;
}
