/* 展销专区页面样式 */

/* 顶部横幅 */
.exhibition-header {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(90, 70, 120, 0.85), rgba(60, 50, 90, 0.9));
}

.header-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-lg);
}

.header-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* 公告栏 */
.exhibition-notice {
  background-color: var(--bg-white);
  margin: 0;
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--border-light);
}

.exhibition-notice .notice-label {
  background: none;
  padding: 0;
}

.exhibition-notice .notice-label span {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* 分类标签 */
.category-tabs {
  display: flex;
  overflow-x: auto;
  background-color: var(--bg-white);
  padding: var(--spacing-sm) var(--spacing-md);
  gap: var(--spacing-xs);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex-shrink: 0;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 14px;
  color: var(--text-secondary);
  background-color: var(--bg-gray);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.category-tab:hover {
  color: var(--primary-color);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
}

/* 商品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  padding-bottom: calc(var(--tabbar-height) + var(--safe-area-bottom) + 60px);
  background-color: var(--bg-gray);
}

/* 商品卡片 */
.product-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.product-card:active {
  transform: scale(0.98);
}

.product-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background-color: var(--bg-gray);
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: var(--spacing-sm);
}

.product-title {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--spacing-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.product-code {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
}

.product-price {
  font-size: 14px;
  margin-bottom: var(--spacing-sm);
}

.product-price .label {
  color: var(--text-secondary);
}

.product-price .value {
  color: var(--accent-color);
  font-weight: 600;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-xs);
  border-top: 1px solid var(--border-light);
}

.product-stats {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 12px;
  color: var(--text-light);
}

.product-stat {
  display: flex;
  align-items: center;
  gap: 2px;
}

.product-stat svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.product-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--primary-color);
}

.product-status .check-icon {
  width: 14px;
  height: 14px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-status .check-icon svg {
  width: 10px;
  height: 10px;
  fill: var(--text-white);
}

/* 加载状态 */
.loading-indicator {
  display: none;
  justify-content: center;
  padding: var(--spacing-lg);
}

.loading-indicator.show {
  display: flex;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
