/* 页面横幅 - 继承download.css样式 */
.page-banner {
  background: linear-gradient(135deg, #2c3e50 0%, #3d5a80 50%, #4a6fa5 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner .banner-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200"><path d="M0,100 L100,80 L200,120 L300,60 L400,140 L500,80 L600,100 L700,60 L800,120 L800,200 L0,200 Z" fill="rgba(255,255,255,0.03)"/><path d="M600,0 L700,40 L800,0 L800,80 L700,120 L600,80 Z" fill="rgba(255,255,255,0.05)"/><path d="M650,150 L750,110 L800,150 L800,200 L650,200 Z" fill="rgba(255,255,255,0.03)"/></svg>') no-repeat center;
  background-size: cover;
  pointer-events: none;
}

.page-banner .banner-title {
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-banner .banner-subtitle {
  font-size: 14px;
  color: #e85a3c;
  position: relative;
  z-index: 1;
}

/* 交易中心内容 */
.trading-content {
  padding: 40px 0 60px;
  background: #f5f5f5;
  min-height: 600px;
}

.trading-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* 标签导航 */
.trading-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 20px;
}

.trading-tab {
  padding: 16px 24px;
  font-size: 15px;
  color: #666;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.trading-tab:hover {
  color: #e85a3c;
}

.trading-tab.active {
  color: #e85a3c;
  font-weight: 500;
}

.trading-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: #e85a3c;
}

/* 筛选区域 */
.filter-section {
  padding: 24px 30px;
  border-bottom: 1px solid #e0e0e0;
}

.filter-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  width: 80px;
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
}

.filter-options {
  display: flex;
  gap: 12px;
}

.filter-btn {
  padding: 6px 16px;
  font-size: 14px;
  color: #666;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #e85a3c;
  color: #e85a3c;
}

.filter-btn.active {
  background: #333;
  border-color: #333;
  color: #fff;
}

.filter-selects {
  display: flex;
  gap: 16px;
}

.filter-select {
  width: 200px;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: #fff;
}

.filter-select:focus {
  border-color: #e85a3c;
}

.filter-input-wrapper {
  flex: 1;
  max-width: 500px;
}

.filter-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 3px;
  outline: none;
  box-sizing: border-box;
}

.filter-input:focus {
  border-color: #e85a3c;
}

.filter-input::placeholder {
  color: #999;
}

/* 数据表格 */
.data-table-wrapper {
  overflow-x: auto;
  padding: 0 30px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
}

.data-table th {
  font-weight: 600;
  color: #333;
  background: #fafafa;
}

.data-table td {
  color: #666;
}

.col-title {
  width: 50%;
}

.col-region {
  width: 12%;
}

.col-publish,
.col-deadline {
  width: 19%;
}

.table-link {
  color: #333;
  transition: color 0.2s;
}

.table-link:hover {
  color: #e85a3c;
}

.tag-new {
  display: inline-block;
  background: #e85a3c;
  color: #fff;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* 分页 */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border-top: 1px solid #e0e0e0;
}

.pagination-info {
  font-size: 14px;
  color: #666;
}

.pagination-info .highlight {
  color: #e85a3c;
  font-weight: 500;
}

.page-size-select {
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  margin: 0 4px;
}

.pagination {
  display: flex;
  gap: 6px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 14px;
  color: #666;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  border-color: #e85a3c;
  color: #e85a3c;
}

.page-btn.active {
  background: #e85a3c;
  border-color: #e85a3c;
  color: #fff;
}

.page-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.page-ellipsis {
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: #999;
}

/* 响应式 */
@media (max-width: 1024px) {
  .trading-tabs {
    flex-wrap: wrap;
    gap: 0;
  }
  
  .trading-tab {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .filter-selects {
    flex-wrap: wrap;
  }
  
  .filter-select {
    width: 160px;
  }
}

@media (max-width: 768px) {
  .page-banner {
    padding: 40px 0;
  }
  
  .page-banner .banner-title {
    font-size: 28px;
  }
  
  .trading-tabs {
    padding: 0 10px;
  }
  
  .trading-tab {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .filter-section {
    padding: 16px;
  }
  
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .filter-label {
    width: auto;
  }
  
  .filter-options {
    flex-wrap: wrap;
  }
  
  .filter-selects {
    width: 100%;
  }
  
  .filter-select {
    width: 100%;
  }
  
  .filter-input-wrapper {
    width: 100%;
    max-width: none;
  }
  
  .data-table-wrapper {
    padding: 0 16px;
  }
  
  .data-table th,
  .data-table td {
    padding: 12px 8px;
    font-size: 13px;
  }
  
  .col-publish,
  .col-deadline {
    display: none;
  }
  
  .col-title {
    width: 70%;
  }
  
  .col-region {
    width: 30%;
  }
  
  .pagination-wrapper {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  
  .pagination-info {
    text-align: center;
  }
}
