/* 基础样式 */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f1f5f9; color: #1e293b; }

.sidebar {
  background: #1e293b !important;
  color: #fff;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid #334155;
}
.el-menu { border-right: none !important; }

.topbar {
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px !important;
  height: 56px !important;
}
.topbar .title {
  font-size: 16px;
  font-weight: 600;
}
.topbar .actions { display: flex; gap: 8px; align-items: center; }

.main {
  background: #f1f5f9;
  padding: 20px !important;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.stat-card .label { color: #64748b; font-size: 13px; margin-bottom: 4px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: #1e293b; }
.stat-card .value .unit { font-size: 14px; color: #94a3b8; margin-left: 4px; }

.tag-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  background: #e0e7ff;
  color: #3730a3;
  margin-right: 4px;
  margin-bottom: 4px;
}

.price-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fef3c7;
  color: #b45309;
  margin-right: 4px;
  font-weight: 600;
}
.price-tag.default {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 14px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.media-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.media-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}
.media-item .info {
  padding: 8px 10px;
  font-size: 12px;
  color: #64748b;
}

.catalogue-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex;
  gap: 16px;
  align-items: center;
}
.catalogue-card .cover {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
}
.catalogue-card .info { flex: 1; }
.catalogue-card .title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.catalogue-card .meta { font-size: 12px; color: #94a3b8; }

.formula-box {
  background: #1e293b;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 6px;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
.empty-state .el-icon { font-size: 48px; margin-bottom: 12px; }

.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar .grow { flex: 1; }
