* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f0f2f5;
  color: #333;
}

#root {
  min-height: 100vh;
}

/* 侧边导航 */
.layout-sider {
  background: #001529 !important;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.layout-sider .logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.layout-sider .logo h1 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
}

.layout-header {
  background: #fff;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.layout-header .header-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.layout-content {
  margin-left: 200px;
  padding: 24px;
  min-height: calc(100vh - 64px);
}

/* 卡片样式 */
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.stat-card .stat-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 600;
  color: #333;
}

.stat-card .stat-sub {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}

/* 预警样式 */
.stat-card.warning .stat-value {
  color: #fa8c16;
}

.stat-card.danger .stat-value {
  color: #ff4d4f;
}

.stat-card.success .stat-value {
  color: #52c41a;
}

/* 表格页 */
.table-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.table-card .table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.table-card .table-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* 表单页 */
.form-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  max-width: 600px;
}

.form-card .form-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* 标签页 */
.tab-content {
  margin-top: 20px;
}

/* 弹窗表单 */
.modal-form {
  min-width: 500px;
}

/* 响应式 */
@media (max-width: 768px) {
  .layout-sider {
    display: none;
  }
  .layout-content {
    margin-left: 0;
  }
}
