:root {
  --primary: #0A2463; /* 深蓝色主色 */
  --primary-light: #3E92CC;
  --secondary: #2C3E50; /* 深灰色辅助色 */
  --accent: #FF5722; /* 强调色 */
  --success: #4CAF50;
  --warning: #FFC107;
  --danger: #F44336;
  --text-primary: #F5F7FA;
  --text-secondary: #B0BEC5;
  --bg-primary: #1A237E;
  --bg-secondary: #121212;
  --bg-card: #283593;
  --border: #3949AB;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --radius: 6px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

body {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 14px;
  overflow-x: hidden;
}

/* 布局组件 */
.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow);
  padding: 20px 0;
  transition: var(--transition);
  z-index: 10;
}

.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

/* Logo样式 */
.logo-container {
  display: flex;
  align-items: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.logo {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  /* clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-right: 12px;
}

.logo::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: white;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* 导航菜单 */
.nav-menu {
  list-style: none;
}

.nav-item {
  margin-bottom: 5px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-left-color: var(--primary-light);
}

.nav-link i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* 卡片组件 */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: var(--primary);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.btn i {
  margin-right: 8px;
}

.btn:hover {
  background-color: var(--primary-light);
}

.btn-secondary {
  background-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: #34495e;
}

.btn-accent {
  background-color: var(--accent);
}

.btn-accent:hover {
  background-color: #e64a19;
}

/* 表格样式 */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.table th, .table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background-color: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

.table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(62, 146, 204, 0.2);
}

/* 状态标签 */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success {
  background-color: rgba(76, 175, 80, 0.2);
  color: var(--success);
}

.badge-warning {
  background-color: rgba(255, 193, 7, 0.2);
  color: var(--warning);
}

.badge-danger {
  background-color: rgba(244, 67, 54, 0.2);
  color: var(--danger);
}

/* 仪表盘样式 */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 13px;
}

.stat-trend {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin-top: auto;
}

.trend-up {
  color: var(--success);
}

.trend-down {
  color: var(--danger);
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-top: 20px;
}

.pagination li {
  margin: 0 5px;
}

.pagination a {
  display: block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.pagination a:hover, .pagination a.active {
  background-color: var(--primary);
  color: var(--text-primary);
}

/* 模态框样式 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

.modal-backdrop.show {
  visibility: visible;
  opacity: 1;
}

.modal {
  width: 100%;
  max-width: 500px;
  background-color: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(-20px);
  transition: var(--transition);
}

.modal-backdrop.show .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sidebar {
    width: 60px;
  }
  
  .logo-text, .nav-link span {
    display: none;
  }
  
  .logo-container {
    padding: 0 10px 20px;
    justify-content: center;
  }
  
  .logo {
    margin-right: 0;
  }
  
  .nav-link {
    justify-content: center;
    padding: 12px;
  }
  
  .nav-link i {
    margin-right: 0;
    font-size: 16px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}