/* ========== 交易大厅样式 ========== */

.trade-page { padding: 24px 0; }

/* 页面标题 */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h2 {
  font-size: 24px;
  color: var(--primary-dark);
  font-weight: 700;
}
.header-actions { display: flex; gap: 12px; }

/* 筛选栏 */
.filter-bar {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-group label {
  font-size: 13px;
  color: var(--text2);
  font-weight: 600;
  white-space: nowrap;
}
.filter-group .form-control {
  width: auto;
  min-width: 120px;
}

/* 交易列表区域 */
.trade-list-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 32px;
}

/* 列表标签 */
.list-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.list-tabs button {
  padding: 12px 24px;
  background: transparent;
  border: none;
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
  position: relative;
}
.list-tabs button.active {
  color: var(--primary);
  font-weight: 600;
}
.list-tabs button.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
}
.list-tabs .count {
  font-size: 12px;
  color: #888;
  margin-left: 4px;
}
.list-tabs .count.hot {
  color: var(--red);
  font-weight: 600;
}

/* 交易表格 */
.trade-table { margin-top: 10px; }
.trade-table th {
  background: var(--bg2);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 12px;
}
.trade-table td {
  padding: 14px 12px;
  vertical-align: middle;
}
.trade-table tr:hover td { background: #f9fff9; }
.trade-table tr.urgent { background: #fff8e1; }
.trade-table tr.urgent:hover td { background: #ffecb3; }
.trade-table .price {
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
}
.trade-table .btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

/* 企业推荐区域 */
.company-section { margin-top: 32px; }
.company-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.company-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(26,107,60,0.15);
}
.company-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.company-header h4 {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.cert-badge {
  background: #e8f5e9;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
}
.company-info {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 6px;
}
.company-stats {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.company-stats span {
  font-size: 12px;
  color: #666;
}

/* 响应式 */
@media(max-width: 900px) {
  .company-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-group { width: 100%; }
  .filter-group .form-control { flex: 1; }
}
@media(max-width: 600px) {
  .company-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; gap: 16px; }
  .trade-table { font-size: 12px; }
  .trade-table th, .trade-table td { padding: 8px; }
}

/* 收藏按钮激活状态 */
.btn.fav-active {
  background: #ffebee !important;
  border-color: #e74c3c !important;
  color: #e74c3c !important;
}

/* 交易表格操作按钮样式 */
.trade-table td:last-child {
  white-space: nowrap;
}
.trade-table td:last-child .btn {
  margin-right: 4px;
}
.trade-table td:last-child .btn:last-child {
  margin-right: 0;
}
