/**
 * 首页秒杀模块样式
 * 参考拼团模块风格，使用橙红色系区分
 * @author Custom Development
 */

/* ==================== 秒杀模块容器 ==================== */
.Heziyun-seckill {
  background: linear-gradient(135deg, #fff5f0 0%, #fff 50%, #fff5f0 100%);
  padding: 60px 0;
}

.Heziyun-seckill .Heziyun-commodity-title span {
  color: #ff5722;
}

/* ==================== 秒杀列表容器 ==================== */
.Heziyun-seckill-list {
  min-height: 200px;
  position: relative;
}

/* ==================== 加载状态 ==================== */
.seckill-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #999;
}

.seckill-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff5722;
  border-radius: 50%;
  animation: seckillSpin 1s linear infinite;
}

@keyframes seckillSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.seckill-loading p {
  margin-top: 15px;
  font-size: 14px;
}

/* ==================== 空状态 ==================== */
.seckill-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #999;
}

.seckill-empty-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffccbc 0%, #ff8a65 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seckill-empty-icon::before {
  content: "⏰";
  font-size: 36px;
}

.seckill-empty p {
  font-size: 14px;
  margin-bottom: 20px;
}

.seckill-empty-btn {
  padding: 10px 30px;
  background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.seckill-empty-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

/* ==================== 秒杀网格布局 ==================== */
.seckill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==================== 秒杀卡片 ==================== */
.seckill-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(255, 87, 34, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 87, 34, 0.1);
}

.seckill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.15);
  border-color: rgba(255, 87, 34, 0.2);
}

/* ==================== 卡片内容区 ==================== */
.seckill-card-content {
  padding: 20px;
}

/* ==================== 产品头部 ==================== */
.seckill-header {
  margin-bottom: 12px;
}

.seckill-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.seckill-title-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.seckill-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 500;
}

.seckill-tag-hot {
  background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
  color: #fff;
}

.seckill-tag-discount {
  background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
  color: #fff;
}

.seckill-tag-limited {
  background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
  color: #fff;
}

.seckill-tag-soldout {
  background: #999;
  color: #fff;
}

.seckill-subtitle {
  font-size: 13px;
  color: #666;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== 配置描述 ==================== */
.seckill-config {
  background: linear-gradient(135deg, #fff5f0 0%, #ffebe5 100%);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.seckill-config-text {
  font-size: 13px;
  color: #ff5722;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== 价格区域 ==================== */
.seckill-price-area {
  margin-bottom: 12px;
}

.seckill-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.seckill-price {
  display: flex;
  align-items: baseline;
}

.seckill-price-symbol {
  font-size: 16px;
  color: #ff5722;
  font-weight: 600;
}

.seckill-price-integer {
  font-size: 32px;
  color: #ff5722;
  font-weight: 700;
  line-height: 1;
}

.seckill-price-decimal {
  font-size: 16px;
  color: #ff5722;
  font-weight: 600;
}

.seckill-price-unit {
  font-size: 14px;
  color: #666;
  margin-left: 2px;
}

.seckill-price-original {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.seckill-price-save {
  display: flex;
  align-items: center;
  gap: 4px;
}

.seckill-price-save-icon {
  color: #ff5722;
  font-size: 12px;
}

.seckill-price-save-text {
  font-size: 13px;
  color: #ff5722;
  font-weight: 500;
}

/* ==================== 秒杀说明 ==================== */
.seckill-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 8px 0;
  border-top: 1px dashed #f0f0f0;
  border-bottom: 1px dashed #f0f0f0;
}

.seckill-notice-icon {
  color: #52c41a;
  font-size: 14px;
}

.seckill-notice-text {
  font-size: 13px;
  color: #666;
}

/* ==================== 配置详情 ==================== */
.seckill-specs {
  margin-bottom: 16px;
}

.seckill-spec-item {
  display: flex;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}

.seckill-spec-icon {
  width: 20px;
  color: #999;
  flex-shrink: 0;
}

.seckill-spec-label {
  color: #999;
  margin-right: 8px;
  flex-shrink: 0;
}

.seckill-spec-value {
  color: #333;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seckill-spec-tag {
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: 11px;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 3px;
  margin-left: 8px;
}

/* ==================== 库存进度条 ==================== */
.seckill-stock {
  margin-bottom: 16px;
}

.seckill-stock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.seckill-stock-label {
  font-size: 13px;
  color: #666;
}

.seckill-stock-count {
  font-size: 13px;
  color: #ff5722;
  font-weight: 500;
}

.seckill-progress-bar {
  height: 8px;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
}

.seckill-progress-inner {
  height: 100%;
  background: linear-gradient(90deg, #ff5722 0%, #ff9800 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}

.seckill-progress-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.seckill-stock-urgent .seckill-progress-inner {
  background: linear-gradient(90deg, #f44336 0%, #ff5722 100%);
  animation: stockPulse 1s infinite;
}

@keyframes stockPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ==================== 秒杀信息区 ==================== */
.seckill-info {
  background: #fafafa;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.seckill-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

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

.seckill-info-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seckill-info-icon {
  font-size: 14px;
}

.seckill-info-text {
  font-size: 13px;
  color: #333;
}

/* ==================== 倒计时 ==================== */
.seckill-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

.seckill-countdown-label {
  font-size: 13px;
  color: #666;
}

.seckill-countdown-time {
  display: flex;
  align-items: center;
  gap: 2px;
}

.seckill-countdown-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  padding: 0 4px;
}

.seckill-countdown-sep {
  color: #ff5722;
  font-weight: 600;
  font-size: 14px;
}

.seckill-countdown-unit {
  font-size: 12px;
  color: #666;
  margin-left: 2px;
}

/* ==================== 活动时间和限购 ==================== */
.seckill-meta {
  font-size: 12px;
  color: #999;
}

.seckill-limit {
  font-size: 12px;
  color: #999;
}

/* ==================== 卡片底部 ==================== */
.seckill-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid #f5f5f5;
  background: #fafafa;
}

.seckill-btn {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.seckill-btn-primary {
  background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
  color: #fff;
}

.seckill-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.seckill-btn-preheat {
  background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
  color: #fff;
}

.seckill-btn-disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

.seckill-btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

.seckill-link {
  margin-left: 16px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.seckill-link:hover {
  color: #ff5722;
}

/* ==================== 查看更多 ==================== */
.seckill-more {
  text-align: center;
  margin-top: 32px;
}

.seckill-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 40px;
  background: #fff;
  border: 1px solid #ff5722;
  color: #ff5722;
  border-radius: 24px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.seckill-more-btn:hover {
  background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.seckill-more-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.seckill-more-btn:hover .seckill-more-icon {
  transform: translateX(4px);
}

/* ==================== 状态徽章 ==================== */
.seckill-status-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 12px;
  font-size: 12px;
  color: #fff;
  border-radius: 0 12px 0 12px;
}

.seckill-status-active {
  background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
}

.seckill-status-preheat {
  background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
}

.seckill-status-soldout {
  background: #999;
}

/* ==================== 响应式适配 ==================== */
@media screen and (max-width: 1200px) {
  .seckill-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .Heziyun-seckill {
    padding: 40px 0;
  }

  .seckill-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .seckill-card-content {
    padding: 16px;
  }

  .seckill-title-text {
    font-size: 16px;
  }

  .seckill-price-integer {
    font-size: 28px;
  }

  .seckill-card-footer {
    padding: 12px 16px;
  }

  .seckill-countdown-num {
    min-width: 22px;
    height: 22px;
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .seckill-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .seckill-countdown {
    width: 100%;
    justify-content: flex-start;
  }
}
