/* 全局样式 */
body {
  font-family: "Microsoft YaHei", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  padding: 20px;
}

/* 导航栏样式 */
.navbar {
  background-color: #28a745;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
  color: white !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.2);
}

/* 工具栏样式 */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.filter-group {
  display: flex;
  gap: 10px;
}

.filter-group select {
  border-radius: 4px;
  border: 1px solid #ddd;
  padding: 6px 12px;
}

/* 按钮样式 */
.btn {
  border-radius: 4px;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #28a745;
  border-color: #28a745;
}

.btn-primary:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

/* Excel风格表格 */
.excel-table {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 20px;
}

.excel-table table {
  margin-bottom: 0;
}

.excel-table th {
  background-color: #f3f3f3;
  border-bottom: 2px solid #ddd;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}

.excel-table td {
  padding: 12px;
  vertical-align: middle;
}

/* 需求发布板样式 */
.supply-row {
  background-color: rgba(40, 167, 69, 0.05);
}

.supply-row:hover {
  background-color: rgba(40, 167, 69, 0.1);
}

.purchase-row {
  background-color: rgba(0, 123, 255, 0.05);
}

.purchase-row:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-valid {
  background-color: #d4edda;
  color: #155724;
}

.status-matched {
  background-color: #cce5ff;
  color: #004085;
}

.status-expired {
  background-color: #f8d7da;
  color: #721c24;
}

/* 模态框样式 */
.modal-content {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
  padding: 15px 20px;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  border-top: 1px solid #eee;
  padding: 15px 20px;
}

/* 表单样式 */
.form-control {
  border-radius: 4px;
  border: 1px solid #ddd;
  padding: 8px 12px;
}

.form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* 详情页样式 */
.demand-detail p {
  margin-bottom: 8px;
}

/* 操作按钮组 */
.action-buttons .btn {
  margin-right: 5px;
}

/* 消息提示 */
#message-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.alert {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* 资源匹配看板样式 */
.stats-container {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  flex: 1;
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.stat-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #28a745;
  margin-bottom: 5px;
}

.stat-percent {
  font-size: 12px;
  color: #666;
}

/* 联名合作模块样式 */
.project-card {
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-status {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.status-collecting {
  background-color: #28a745;
}

.status-voting {
  background-color: #007bff;
}

.status-completed {
  background-color: #6c757d;
}

.proposals-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.proposal-card {
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.proposal-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.proposal-info {
  padding: 15px;
}

.vote-count {
  display: inline-block;
  padding: 3px 8px;
  background-color: #f8f9fa;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 5px;
}

/* 数据统计模块样式 */
.time-filter {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.chart-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.chart-card .card-header {
  background-color: white;
  border-bottom: 1px solid #eee;
  padding: 15px;
}

.chart-card .card-body {
  padding: 15px;
  height: 300px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .stats-container {
    flex-direction: column;
  }
  
  .toolbar {
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-group {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .proposals-container {
    grid-template-columns: 1fr;
  }
}

/* 企业详情页样式 */
.business-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #28a745;
}

.business-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.business-type {
  font-size: 12px;
  padding: 5px 10px;
}

.certification-item {
  margin-bottom: 10px;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.product-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-info {
  border-top: 1px solid #eee;
}

.product-price {
  color: #dc3545;
  font-weight: 500;
}

/* 统计卡片样式修复 */
.stat-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  height: 100%;
}

.stat-card-body {
  display: flex;
  padding: 20px;
}

.stat-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin-right: 15px;
}

.stat-card-content {
  flex: 1;
}

.stat-card-title {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 5px;
}

.stat-card-value {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.stat-card-unit {
  font-size: 12px;
  color: #6c757d;
}

.stat-card-percent {
  font-size: 12px;
  color: #28a745;
}

.bg-primary {
  background-color: #007bff;
}

.bg-success {
  background-color: #28a745;
}

.bg-info {
  background-color: #17a2b8;
}

.bg-warning {
  background-color: #ffc107;
} 