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

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

#root {
  min-height: 100vh;
}

/* 侧边导航 - 渐变深蓝色 */
.ant-layout-sider.app-sider {
  background: linear-gradient(180deg, #1E3A5F 0%, #15294a 100%) !important;
}

.ant-layout-sider.app-sider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

/* Logo区域 */
.app-logo {
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

.app-logo-text {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.app-logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 2px;
  margin-top: 2px;
}

/* 菜单样式 */
.app-menu {
  background: transparent !important;
  border-right: none !important;
}

.app-menu .ant-menu-item {
  color: rgba(255,255,255,0.85);
  margin: 4px 8px;
  border-radius: 6px;
  height: 44px;
  line-height: 44px;
}

.app-menu .ant-menu-item:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff;
}

.app-menu .ant-menu-item-selected {
  background: rgba(37,99,235,0.8) !important;
  color: #fff;
}

/* 顶部导航 */
.app-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;
  height: 64px;
}

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

.app-header .header-user {
  font-size: 14px;
  color: #666;
}

/* 主内容区 */
.layout-content {
  margin-left: 220px;
  padding: 24px;
  min-height: calc(100vh - 64px);
  background: #f1f5f9;
}

/* 页面标题 */
.page-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 24px;
}

/* 数据卡片 */
.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.success .stat-value { color: #10b981; }
.stat-card.warning .stat-value { color: #f59e0b; }
.stat-card.danger .stat-value { color: #ef4444; }
.stat-card.info .stat-value { color: #0ea5e9; }

/* 统计卡片网格 */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* 仓库卡片 */
.warehouse-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.warehouse-card-header {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

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

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

.warehouse-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* 表格卡片 */
.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-section {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

/* 搜索栏 */
.search-bar {
  margin-bottom: 16px;
}

/* 按钮 */
.btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.btn-success {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.btn-success:hover {
  background: #059669 !important;
  border-color: #059669 !important;
}

/* 预警提示 */
.alert-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 8px;
  border-left: 3px solid #f59e0b;
}

.alert-text {
  flex: 1;
  font-size: 14px;
  color: #333;
}

/* 页面仪表盘 */
.page-dashboard {
  padding: 24px;
}

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

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

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

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