
  /* ===== 商品详情容器 ===== */
.goods-detail-container {
  padding: 20px 25px 30px;
  background: #fff;
  border-radius: 8px;
  min-height: 500px;
}

/* ===== 商品主区域 ===== */
.goods-main {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* ===== 左侧图片 ===== */
.goods-images {
  width: 340px;
  flex-shrink: 0;
}

.goods-images .main-img {
  width: 100%;
  aspect-ratio: 1/1;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goods-images .main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.goods-images .thumb-list {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.goods-images .thumb-list .thumb-item {
  width: 56px;
  height: 56px;
  border: 2px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s;
  background: #fafafa;
}

.goods-images .thumb-list .thumb-item:hover,
.goods-images .thumb-list .thumb-item.active {
  border-color: #CC6733;
}

.goods-images .thumb-list .thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 右侧信息 ===== */
.goods-info {
  flex: 1;
  min-width: 260px;
}

.goods-info .goods-name {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.6;
}

/* ===== 价格区域 ===== */
.goods-price-box {
  background: #fafafa;
  width: 100%;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.goods-price-box .goods-price {
  font-size: 28px;
  font-weight: 700;
  color: #CC6733;
}

.goods-price-box .currency-symbol {
  font-size: 18px;
  font-weight: 400;
  color: #CC6733;
  margin-right: 2px;
}

/* ===== 商品信息行距加大 ===== */
.goods-info .info-row {
  margin-bottom: 16px;
}

/* ===== 规格选择（换行） ===== */
.goods-spec {
  margin-bottom: 16px;
}

.goods-spec .spec-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.goods-spec .spec-group .spec-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.goods-spec .spec-group .spec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.goods-spec .spec-group .spec-options .spec-item {
  padding: 5px 18px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
  background: #fff;
}

.goods-spec .spec-group .spec-options .spec-item:hover {
  border-color: #CC6733;
  color: #CC6733;
}

.goods-spec .spec-group .spec-options .spec-item.active {
  border-color: #CC6733;
  background: #CC6733;
  color: #fff;
}

/* ===== 确认状态（换行） ===== */
.goods-confirm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.goods-confirm .confirm-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.goods-confirm .confirm-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.goods-confirm .confirm-options .confirm-item {
  padding: 5px 18px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
  background: #fff;
}

.goods-confirm .confirm-options .confirm-item:hover {
  border-color: #CC6733;
  color: #CC6733;
}

.goods-confirm .confirm-options .confirm-item.active {
  border-color: #CC6733;
  background: #CC6733;
  color: #fff;
}

/* ===== 数量选择 ===== */
.goods-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.goods-qty .qty-label {
  font-size: 14px;
  color: #666;
  min-width: 70px;
}

.goods-qty .qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.goods-qty .qty-control .btn-minus,
.goods-qty .qty-control .btn-plus {
  width: 32px;
  height: 32px;
  background: #fafafa;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #666;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.goods-qty .qty-control .btn-minus:hover,
.goods-qty .qty-control .btn-plus:hover {
  background: #f0edeb;
}

.goods-qty .qty-control .qty-input {
  width: 40px;
  height: 32px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  background: #fff;
  padding: 0;
  box-sizing: border-box;
}

.goods-qty .qty-control .qty-input:focus {
  outline: none;
}

/* ===== 操作按钮 ===== */
.goods-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.goods-actions .btn-buy {
  padding: 10px 36px;
  background: #d9534f;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.goods-actions .btn-buy:hover {
  background: #c9302c;
}

.goods-actions .btn-cart {
  padding: 10px 32px;
  background: #fff;
  color: #CC6733;
  border: 2px solid #CC6733;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.goods-actions .btn-cart:hover {
  background: #CC6733;
  color: #fff;
}

/* ===== 商品详情Tab ===== */
.goods-tabs {
  margin-top: 24px;
  border-top: 2px solid #f0edeb;
  padding-top: 6px;
}

.goods-tabs .tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #eee;
}

.goods-tabs .tab-nav .tab-item {
  padding: 12px 28px;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  display: inline-block;
}

.goods-tabs .tab-nav .tab-item:hover {
  color: #CC6733;
}

.goods-tabs .tab-nav .tab-item.active {
  color: #CC6733;
  border-bottom-color: #CC6733;
  font-weight: 600;
}

.goods-tabs .tab-content {
  padding: 18px 0 10px 0;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

.goods-tabs .tab-content .tab-panel {
  display: none;
}

.goods-tabs .tab-content .tab-panel.active {
  display: block;
}

.goods-tabs .tab-content .tab-panel img {
  max-width: 100%;
  height: auto;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .goods-images {
    width: 100%;
    max-width: 360px;
  }
  .goods-main {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .goods-detail-container {
    padding: 14px 14px 20px;
  }
  .goods-images {
    max-width: 100%;
  }
  .goods-images .main-img {
    aspect-ratio: 1/1;
  }
  .goods-info .goods-name {
    font-size: 18px;
  }
  .goods-price-box .goods-price {
    font-size: 24px;
  }
  .goods-price-box .currency-symbol {
    font-size: 16px;
  }
  .goods-actions {
    flex-direction: column;
  }
  .goods-actions .btn-buy,
  .goods-actions .btn-cart {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  .goods-tabs .tab-nav .tab-item {
    padding: 10px 18px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .goods-detail-container {
    padding: 10px 10px 16px;
  }
  .goods-info .goods-name {
    font-size: 16px;
  }
  .goods-price-box .goods-price {
    font-size: 20px;
  }
  .goods-price-box .currency-symbol {
    font-size: 14px;
  }
  .goods-price-box {
    padding: 10px 14px;
  }
  .goods-tabs .tab-nav .tab-item {
    padding: 8px 14px;
    font-size: 13px;
  }
  .goods-tabs .tab-content {
    font-size: 13px;
  }
  .goods-images .thumb-list .thumb-item {
    width: 44px;
    height: 44px;
  }
  .goods-qty .qty-control .btn-minus,
  .goods-qty .qty-control .btn-plus {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .goods-qty .qty-control .qty-input {
    width: 34px;
    height: 28px;
    font-size: 13px;
  }
  .goods-actions .btn-buy,
  .goods-actions .btn-cart {
    font-size: 15px;
    padding: 10px;
  }
}

  /* ===== 加入购物车弹出层样式 ===== */
  #addcartDiv {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #ffffff;
    padding: 40px 50px 35px;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
    min-width: 320px;
    max-width: 90%;
  }

  #addcartDiv .close-btn {
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
  }

  #addcartDiv .close-btn:hover {
    color: #333;
  }

  #addcartDiv .addok {
    font-size: 20px;
    color: #4CAF50;
    display: block;
    margin-bottom: 20px;
  }

  #addcartDiv .addok .check-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    margin-right: 12px;
  }

  #addcartDiv .bn {
    margin-top: 10px;
  }

  #addcartDiv .bn a {
    display: inline-block;
    padding: 10px 32px;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
  }

  #addcartDiv .bn .cart_bn_js {
    background: #4CAF50;
    color: #fff;
    margin-right: 12px;
  }

  #addcartDiv .bn .cart_bn_js:hover {
    background: #43a047;
    transform: translateY(-1px);
  }

  #addcartDiv .bn .cart_bn_home {
    background: #e0e0e0;
    color: #555;
  }

  #addcartDiv .bn .cart_bn_home:hover {
    background: #d0d0d0;
    transform: translateY(-1px);
  }

