/* 全局样式 */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8f9fa;
}

/* 导航栏 */
.navbar {
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.25rem;
}

/* 卡片样式 */
.card {
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: none;
}

.card-header {
  background-color: #fff;
  border-bottom: 2px solid #dee2e6;
  padding: 15px 20px;
  font-weight: 600;
}

/* 表格样式 */
.table {
  background-color: #fff;
}

.table-hover tbody tr:hover {
  background-color: #f5f5f5;
}

/* 按钮 */
.btn {
  padding: 8px 16px;
  font-weight: 500;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 0.875rem;
}

/* 分页 */
.pagination {
  margin-top: 20px;
}

/* 表单 */
.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 徽章 */
.badge {
  padding: 0.35em 0.65em;
  font-weight: 600;
}

/* 模态框 */
.modal-header {
  border-bottom: 2px solid #dee2e6;
}

.modal-footer {
  border-top: 2px solid #dee2e6;
}

/* 加载中 */
#loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 消息提示 */
#message {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .navbar {
    margin-bottom: 15px;
  }
  
  .card {
    margin-bottom: 15px;
  }
}

/* 统计卡片 */
.card.text-white .card-body h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card.text-white .card-body h5 {
  font-size: 0.875rem;
  opacity: 0.8;
  font-weight: 500;
}

/* 表格响应式 */
.table-responsive {
  border-radius: 4px;
  overflow-x: auto;
}

/* 颜色变体 */
.bg-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-success {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%) !important;
  color: #333 !important;
}

.bg-info {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
  color: #333 !important;
}

.bg-warning {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%) !important;
  color: #333 !important;
}

/* 导航链接 */
.nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.2);
}

/* 图表容器 */
#orderTrendChart {
  max-height: 300px;
}

/* 热门营期列表 */
#popularCamps .d-flex {
  padding: 8px 0;
  border-bottom: 1px solid #dee2e6;
}

#popularCamps .d-flex:last-child {
  border-bottom: none;
}

/* 分页按钮 */
.pagination .page-link {
  color: #495057;
  border: 1px solid #dee2e6;
  margin: 0 2px;
  border-radius: 4px;
}

.pagination .page-link:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

.pagination .page-item.active .page-link {
  background-color: #667eea;
  border-color: #667eea;
  color: #fff;
}

/* 搜索框 */
.input-group {
  max-width: 500px;
}

/* 加载动画 */
.spinner-border {
  width: 3rem;
  height: 3rem;
}
