/* 布局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* 登录页面样式 */
.login-body {
  background: linear-gradient(135deg, #1a8cff 0%, #0056b3 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-header {
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.login-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 300;
}

.login-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.login-form-container {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-weight: 400;
}
.login-form input{border: 1px solid #a7a7a7; padding: 5px 10px}
.form-group{display: flex; padding-bottom: 15px}
.form-group label{width: 100px}


.btn-login {
  width: 100%;
  padding: 12px;
  background: #1a8cff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-login:hover {
  background: #0056b3;
}

.btn-login:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.login-tips {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.login-footer {
  text-align: center;
  color: white;
  margin-top: 30px;
  opacity: 0.8;
}

/* 主布局样式 */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* 头部样式 */
.main-header {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
}

.sidebar-toggle {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  margin-right: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
}

.sidebar-toggle span {
  display: block; width:20px;
  height: 2px;
  background: #333;
  transition: all 0.3s;
}

.header-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: #333;
}

.header-right {
  display: flex;
  align-items: center;
}

.user-info {
  position: relative;
}

.user-name {
  margin-right: 10px;
  color: #666;
}

.user-dropdown {
  position: relative;
}

.user-menu-btn {
  background: none;
  border: 1px solid #e0e0e0;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-arrow {
  font-size: 10px;
  color: #666;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  display: none;
}

.user-dropdown-menu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  transition: background 0.3s;
}

.user-dropdown-menu a:hover {
  background: #f5f5f5;
}

.user-dropdown:hover .user-dropdown-menu {
  display: block;
}

/* 侧边栏样式 */
.sidebar {
  width: 250px;
  background: #2c3e50;
  color: white;
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  transition: transform 0.3s;
  z-index: 999;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #34495e;
}

.sidebar-header h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
}

.menu-item {
  border-bottom: 1px solid #34495e;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s;
}

.menu-link:hover,
.menu-link.active {
  background: #34495e;
  color: white;
}

.menu-icon {
  margin-right: 10px;
  font-size: 1.1rem;
}

.menu-text {
  font-size: 0.95rem;
}

.menu-divider {
  padding: 10px 20px;
  color: #7f8c8d;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 主内容区域 */
.main-content {
  flex: 1;
  margin-left: 250px;
  margin-top: 60px;
  padding: 20px;
  transition: margin-left 0.3s;
  overflow: hidden;
}

.main-content.expanded {
  margin-left: 0;
}

.content-area {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .main-header {
    padding: 0 15px;
  }
  
  .header-title {
    font-size: 1.1rem;
  }
}

/* 加载状态 */
.loading {
  text-align: center;
  padding: 40px;
  font-size: 16px;
  color: #666;
}

.loading::after {
  content: '...';
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0%, 33% { content: '.'; }
  34%, 66% { content: '..'; }
  67%, 100% { content: '...'; }
}