/* 产品卡片 */
.product-card {
  display: flex;
  width: 1130px;
  /* height: 230px; */
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
  box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.product-card:last-child {
  margin-bottom: 0;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 0 3px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-size: 12px;
  color: #fff;
  line-height: 15px;
  height: 17px;
  text-align: center;
}

.tag-blue {
  background: #003399;
}

.tag-green {
  background: rgba(82, 196, 26, 0.2);
  color: #52c41a;
  border: 1px solid #52c41a;
}

.tag-orange {
  background: #fff7d6;
  border: 1px solid #ffa21a;
  color: #ffa21a;
}

.tag-purple {
  background: rgba(255, 167, 140, 0.2);
  border: 1px solid #ffa78c;
  color: #ffa78c;
}

/* 产品图片 */
.product-image-wrapper {
  position: relative;
  width: 238px;
  min-width: 228px;
  height: 228px;
  margin: 1px 0 1px 1px;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.product-image-wrapper .tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.product-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* 分隔线 */
.divider-v {
  width: 1px;
  background: #e8e8e8;
  margin: 16px 0;
  flex-shrink: 0;
}

/* 产品信息区域 */
.product-info {
  /* flex: 1; */
  padding: 20px 10px;
  min-width: 0;
}

.product-title {
  font-family:
    "Source Han Sans CN", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 14px;
  line-height: 20px;
  width: 400px;
}

/* 参数区域：无外包边框；每个 .spec-item 单边拼线（避免双线），次行仍 grid-column 对齐上行 */
.specs-wrapper {
  width: 400px;
  margin-bottom: 17px;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.specs-wrapper .spec-item {
  border: 0 solid #e8e8e8;
}

.specs-grid1 {
  display: flex;
  flex-direction: row;
  width: 400px;
  border-radius: 4px 4px 4px 0px;
  border: 1px solid #f3f3f3;
}
.specs-grid3 {
  display: flex;
  flex-direction: row;
  width: 400px;
  border: 1px solid #f3f3f3;
  border-top: none;
  border-radius: 0 0 4px 0;
}
.specs-grid4 {
  display: flex;
  flex-direction: row;
  width: 300px;
  border: 1px solid #f3f3f3;

  border-radius: 4px;
}
.specs-grid2 {
  display: flex;
  flex-direction: row;
  width: 200px;
  border-radius: 0px 0px 4px 4px;
  border: 1px solid #f3f3f3;
  border-top: none;
}
.spec-item {
  width: 100px;
  padding: 12px 0px 12px 11px;

  background-color: #f8f8f8;
  .spec-item-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-right: 1px solid #f3f3f3;
  }
  .no-right-border {
    border-right: none;
  }
}

.specs-subrow {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.specs-subrow .spec-item:first-child {
  border-left-width: 1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-bottom-left-radius: 4px;
}

.specs-subrow .spec-item:last-child {
  border-bottom-width: 1px;
  border-right-width: 1px;
  border-bottom-right-radius: 4px;
}

.spec-label {
  height: 16px;
  font-family:
    Source Han Sans CN,
    Source;
  font-weight: 400;
  font-size: 12px;
  color: #666666;
  line-height: 16px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}
.spec-label-en {
    white-space: nowrap;
    font-family: 'Source Han Sans CN-Regular', sans-serif;
    font-size: 12px;
    zoom: 0.833;
}
.spec-value {
  height: 16px;
  font-family: Arial, Arial;
  font-weight: bold;
  font-size: 12px;
  color: #333333;
  line-height: 16px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

/* 底部规格 */
.extra-specs {
  display: flex;
  row-gap: 10px;
  column-gap: 20px;
  font-size: 12px;
  color: #666666;
  flex-wrap: wrap;
  line-height: 16px;
  width: 400px;
}

.extra-specs .label {
  color: #666;
}

.extra-specs .value {
  color: #333;
  font-weight: 500;
}

/* 右侧操作区域 */
.action-section {
  box-sizing: border-box;
  width: 459px;
  min-width: 380px;
  padding: 20px 0 20px 10px;
  flex-shrink: 0;
}

/* 型号头部 */
.model-header {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin-bottom: 10px;
  width: 448px;
}
.model-text {
  width: 28px;
  height: 20px;
  flex-shrink: 0;
  font-family:
    Source Han Sans CN,
    Source Han Sans CN;
  font-weight: bold;
  font-size: 14px;
  color: #333333;
  line-height: 20px;
}
.model-status {
  margin-left: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
  font-weight: 600;
  font-family: "Source Han Sans CN", sans-serif;
}

.status-icon {
  width: 16px;
  height: 16px;
  background: #52c41a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
}

.header-actions {
  margin: 0 20px;
  display: inline-flex;
  gap: 10px;
  height: 20px;
}

.header-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #003399;
  cursor: pointer;
  transition: color 0.2s;
}

.header-action:hover {
  color: #002880;
}
.icon-svg {
  fill: #333333;
}
.icon-svg:hover {
  fill: #003399;
}

.header-action svg {
  width: 14px;
  height: 14px;
}

/* 型号名称 */
.model-code {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  word-break: break-all;
}
.model-name {
  font-family: Arial, sans-serif;
  color: #003399;
  text-decoration: underline;
  border: none;
  cursor: pointer;
}

/* 信息行 */
.info-row {
  width: 448px;
  height: 76px;
  background: #ffffff;
  border-radius: 4px 4px 4px 4px;
  border: 1px solid #f3f3f3;
  position: relative;
}
.tag-type {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 46px;
  height: 20px;
  background: #003399;
  border-radius: 4px 4px 4px 4px;
  font-family: "Microsoft YaHei, Microsoft YaHei";
  font-weight: bold;
  font-size: 14px;
  color: #ffffff;
  line-height: 18px;
  text-align: center;
}
.info-content {
  margin-left: 37px;
  margin-top: 22px;
  display: flex;
  flex-direction: row;
  .no-border-right {
    border-right: none;
    width: 152px;
  }
}
.info-item {
  width: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-right: 1px solid #f3f3f3;
}

.info-label {
  font-family: "Source Han Sans CN, Source Han Sans CN";
  height: 20px;
  font-weight: 400;
  font-size: 14px;
  color: #666666;
  line-height: 20px;
}

.info-value {
  font-family: "Source Han Sans CN", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  line-height: 20px;
}

.price-wrapper {
  display: flex;
  height: 20px;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.price-currency {
  font-size: 8px;
  color: #e52f2c;
  font-weight: 600;
}

.price-value {
  font-family: Arial, Arial;
  font-weight: bold;
  font-size: 12px;
  color: #e52f2c;
  line-height: 20px;
  text-align: left;
}

.nodate{
  font-family: Arial, Arial;
  font-weight: bold;
  font-size: 12px;
  color: #003399;
  line-height: 20px;
  text-align: left;
}
.delivery-badge {
  border-radius: 2px 2px 2px 2px;
  border: 1px solid #003399;
  padding: 1px 4px;
  font-family: "Source Han Sans CN, Source Han Sans CN";
  font-weight: 500;
  font-size: 12px;
  color: #003399;
  line-height: 16px;
  text-align: center;
}

/* 按钮组 */
.btn-group {
  display: flex;
  column-gap: 10px;
  margin-left: auto;
}

.btn {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #003399;
  color: #003399;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:hover {
  background: #eef4fc;
}

.btn-car {
  width: 110px;
  height: 36px;
  background: #ffcc00;
  border-radius: 4px 4px 4px 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: "Source Han Sans CN, Source Han Sans CN";
  font-weight: 500;
  font-size: 14px;
  color: #333333;
  line-height: 20px;
  text-align: center;
}
.btn-car:hover {
  background: #ffe58a;
}
.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-blue {
  background: #0033a0;
  color: #fff;
}

.btn-blue:hover {
  background: #002880;
}

.btn-outline {
  background: #fff;
  color: #0033a0;
  border: 1px solid #0033a0;
  width: 126px;
}

.btn-outline:hover {
  background: #f5f7fa;
}

.btn-yellow {
  background: #ffcc00;
  color: #333;
  width: 112px;
}

.btn-yellow:hover {
  background: #e6b800;
}

.product-card-loading {
    position: relative;
}
.product-card-loading::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    z-index: 9;
    background-image: url("images/loading.gif");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 84px 84px;
}
/* 响应式 */
@media (max-width: 1100px) {
  .product-card {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .divider-v {
    display: none;
  }

  .product-image-wrapper {
    width: 228px;
    height: 228px;
    margin: 16px auto;
  }

  .action-section {
    width: 100%;
    border-top: 1px solid #e8e8e8;
  }

  .specs-wrapper {
    width: 100%;
    margin-bottom: 16px;
  }
}

@media (max-width: 640px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .extra-specs {
    flex-direction: column;
    gap: 8px;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn-group {
    flex-direction: column;
  }

  .model-header {
    flex-wrap: wrap;
    gap: 8px;
  }
}
