/* 基础样式 */
:root {
  --primary-color: #4A8CFF;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;
  color: var(--gray-900);
  line-height: 1.5;
}

/* PC应用布局 */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background-color: #fff;
  border-right: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-logo {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.sidebar-logo i {
  margin-right: 10px;
  font-size: 24px;
}

.menu {
  padding: 15px 0;
}

.menu-section {
  margin-bottom: 15px;
}

.menu-section-title {
  padding: 10px 20px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray-600);
  font-weight: 600;
}

.menu-item {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  color: var(--gray-700);
  text-decoration: none;
  transition: background-color 0.2s;
}

.menu-item:hover {
  background-color: var(--gray-100);
}

.menu-item.active {
  background-color: rgba(74, 140, 255, 0.1);
  color: var(--primary-color);
  font-weight: 500;
  border-left: 3px solid var(--primary-color);
}

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

.content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 60px;
  background-color: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
}

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

.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-icon {
  margin-left: 15px;
  color: var(--gray-600);
  font-size: 18px;
  cursor: pointer;
}

.user-profile {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--gray-200);
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-weight: 500;
}

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

/* 数据表格 */
.table-container {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

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

.table th {
  background-color: var(--gray-100);
  font-weight: 600;
  color: var(--gray-700);
}

.table tr:last-child td {
  border-bottom: none;
}

.table-striped tr:nth-child(even) {
  background-color: var(--gray-100);
}

/* 卡片和面板 */
.card {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

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

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--gray-200);
}

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

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--gray-800);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(74, 140, 255, 0.1);
}

.form-control-sm {
  padding: 6px 8px;
  font-size: 13px;
}

.form-control-lg {
  padding: 12px 16px;
  font-size: 16px;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  font-size: 14px;
}

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

.btn-primary:hover {
  background-color: #3a7deb;
  box-shadow: 0 2px 5px rgba(74, 140, 255, 0.3);
}

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

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

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

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 20px;
  font-size: 16px;
}

/* 工具类 */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-600); }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.ml-2 { margin-left: 10px; }
.mr-2 { margin-right: 10px; }

/* 图表容器 */
.chart-container {
  height: 300px;
  margin-bottom: 20px;
} 