/* ========================================
   样式D: 横向卡片布局 - 独立样式文件
   ======================================== */

.cat-styleD-promotion-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  margin-bottom: 20px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.cat-styleD-promotion-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* 右上角标签 */
.cat-styleD-promotion-card .card-corner-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #ff5722, #ff7043);
  color: #fff;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0 6px 0 12px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

/* 左侧内容区 */
.cat-styleD-promotion-card .cat-styleD-left {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 标题 */
.cat-styleD-promotion-card .cat-styleD-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-styleD-promotion-card .cat-styleD-title h1 {
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  margin: 0;
}

.cat-styleD-promotion-card .cat-styleD-title .arrow-icon {
  color: #9ca3af;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

/* 描述 */
.cat-styleD-promotion-card .cat-styleD-desc {
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
}

.cat-styleD-promotion-card .cat-styleD-desc p {
  margin: 0;
}

/* 配置参数列表 */
.cat-styleD-promotion-card .cat-styleD-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-styleD-promotion-card .spec-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.cat-styleD-promotion-card .spec-item:last-child {
  border-bottom: none;
}

.cat-styleD-promotion-card .spec-label {
  min-width: 80px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
}

.cat-styleD-promotion-card .spec-value {
  flex: 1;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

.cat-styleD-promotion-card .spec-text {
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

/* 标签组 */
.cat-styleD-promotion-card .cat-styleD-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-styleD-promotion-card .tag-item {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.cat-styleD-promotion-card .tag-item.discount-tag {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.cat-styleD-promotion-card .tag-item.stock-tag {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

/* 右侧价格和按钮区 */
.cat-styleD-promotion-card .cat-styleD-right {
  min-width: 280px;
  max-width: 280px;
  background: #fafbfc;
  border-left: 2px solid #e5e7eb;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

/* 价格区域 */
.cat-styleD-promotion-card .cat-styleD-price-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-styleD-promotion-card .cat-styleD-price-section.hidden {
  display: none;
}

.cat-styleD-promotion-card .price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-styleD-promotion-card .price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-styleD-promotion-card .price-label {
  color: #ef4444;
  font-size: 14px;
  font-weight: 500;
}

.cat-styleD-promotion-card .price-current {
  color: #ef4444;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  font-family: 'Arial', sans-serif;
}

.cat-styleD-promotion-card .price-unit {
  color: #ef4444;
  font-size: 16px;
  font-weight: 500;
}

.cat-styleD-promotion-card .price-tip {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.cat-styleD-promotion-card .price-original {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.cat-styleD-promotion-card .original-label {
  color: #9ca3af;
  font-size: 13px;
}

.cat-styleD-promotion-card .original-value {
  color: #9ca3af;
  font-size: 15px;
  text-decoration: line-through;
}

.cat-styleD-promotion-card .original-unit {
  color: #9ca3af;
  font-size: 13px;
}

/* 按钮组 */
.cat-styleD-promotion-card .cat-styleD-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-styleD-promotion-card .btn-primary,
.cat-styleD-promotion-card .btn-secondary {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cat-styleD-promotion-card .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
}

.cat-styleD-promotion-card .btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.cat-styleD-promotion-card .btn-secondary {
  background: #fff;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.cat-styleD-promotion-card .btn-secondary:hover {
  background: #eff6ff;
}

.cat-styleD-promotion-card .btn-primary.disableButton {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.cat-styleD-promotion-card .btn-primary.disableButton:hover {
  transform: none;
  box-shadow: none;
}

/* 进度条 */
.cat-styleD-promotion-card .stock-progress {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.cat-styleD-promotion-card .progress-bar {
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .cat-styleD-promotion-card {
    flex-direction: column;
  }

  .cat-styleD-promotion-card .cat-styleD-right {
    min-width: 100%;
    max-width: 100%;
    border-left: none;
    border-top: 2px solid #e5e7eb;
  }

  .cat-styleD-promotion-card .cat-styleD-actions {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .cat-styleD-promotion-card .cat-styleD-left {
    padding: 16px;
  }

  .cat-styleD-promotion-card .cat-styleD-right {
    padding: 16px;
  }

  .cat-styleD-promotion-card .cat-styleD-title h1 {
    font-size: 18px;
  }

  .cat-styleD-promotion-card .price-current {
    font-size: 32px;
  }

  .cat-styleD-promotion-card .cat-styleD-actions {
    flex-direction: column;
  }
}
