 /* 基本样式 */
 body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

.container {
    padding-top: 60px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    /* gap: 20px; */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

/* 商品详情部分 */
.product-detail {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.product-images {
    flex: 1;
}

/* Swiper 轮播图样式 */
.product-images .swiper {
    width: 100%;
    max-width: 500px;
    border: 1px solid #ddd;
}

.product-images .swiper .swiper-slide {
    text-align: center;
}

.product-images .swiper .swiper-slide img {
    width: 100%;
    height: auto;
    /* border: 1px solid #ddd; */
    border-radius: 5px;
}

.product-images .swiper .swiper-pagination {
    position: relative;
    margin-top: 10px;
}

.product-images .swiper .swiper-button-next,
.product-images .swiper .swiper-button-prev {
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.product-images .swiper .swiper-button-next:hover,
.product-images .swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.9);
}
.swiper-button-next:after,.swiper-button-prev:after{
    font-size: 26px;
}
.main-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.product-info {
    flex: 1;
}

.product-info h2 {
    margin-top: 0;
}

.price {
    font-size: 24px;
    color: #e44d26;
    font-weight: bold;
}

.description {
    margin: 20px 0;
    color: #666;
}

.options {
    margin-bottom: 20px;
}

.options label {
    display: block;
}
.model-control{
    display: flex;
    align-items: center;
}

.options select,
.options input {
    width: 100%;
    padding: 8px;
    /* margin-bottom: 10px; */
    border: 1px solid #ddd;
    border-radius: 5px;
}

.actions {
    display: flex;
    /* gap: 10px; */
}

.add-to-cart,
.buy-now {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.add-to-cart {
    background-color: #28a745;
    color: #fff;
    border-radius: 5px 0px 0px 5px;
}

.buy-now {
    background-color: #007bff;
    color: #fff;
    border-radius: 0px 5px 5px 0px;
}

.add-to-cart:hover,
.buy-now:hover {
    opacity: 0.9;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity-btn {
    /* padding: 5px 10px; */
    font-size: 20px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    width: 28px;
    height: 28px;
    line-height: 1.5;
    text-align: center;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

#quantity {
    margin: 0 10px;
    font-size: 18px;
    width: 60px;
    height: 10px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.quantity-input {
    margin: 0 10px;
    font-size: 18px;
    width: 60px;
    height: 28px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    padding: 0;
}

.quantity-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}




/* 规格 */
.dimension-container{
    margin-top: 20px;
}
#productName{
    font-size: 24px;
    font-weight: 700;
}
.title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 24px;
}
.dimension-section {
    margin-bottom: 15px;
}
.dimension-row {
    display: flex;
    margin-bottom: 15px;
    align-items: self-start;
}
.dimension-label {
    font-weight: bold;
    text-align: left;
    padding-right: 15px;
    color: #34495e;
}
.dimension-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}
.value-box {
    background-color: #ffff;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
    border: 1px solid #dee2e6;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.value-box:hover {
    transform: translateY(-2px);
}
.value-box.selected {
    color: #e72410 !important;
    border: 1px solid red !important;
}
.value-box.inactive {
    background-color: #eee;
    color: #333;
}
/* 规格 */

/* 购物车弹窗 */

 /* CSS 部分 */
 .toast-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 1000;
    display: none; /* 默认隐藏 */
  }

  .toast-content p {
    margin: 8px 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
  }

  .toast-button {
    background: #ff6700;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 12px;
    cursor: pointer;
    font-size: 20px;
  }

  .toast-button:hover {
    background: #e55c00;
  }
  /* 购物车弹窗 */


  /* 规格参数 */
  .SpecificationsBox{
    margin-top: 30px;
    background-color: #f1F1F1;
    display: flex;
  }
  .SpecificationsBox>span{
    display: block;
    padding: 10px 10px;
    font-size: 16px;
    color:#409eff;
    background-color: #fffFFF;
    box-shadow: -2px -2px 5px 0 rgba(0, 0, 0, 0.3); /* 外阴影 */
  }
  .Specifications_img{
    display:flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd;
    margin-top: 30px;
  }
  .Specifications_img{
    padding-top: 20px;
    box-shadow: -2px 2px 5px 0 rgba(0, 0, 0, 0.3); /* 外阴影 */
  }
  .Specifications_img img{
    width: 800px;
    height: auto;
  }
  .SpecificationTable{
      padding:20px 20px ;
      box-shadow: -2px 2px 5px 0 rgba(0, 0, 0, 0.3); /* 外阴影 */
  }
  .product-table {
      border-collapse: collapse;
      width: 100%;
      margin: 0 auto;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  .product-table th {
      padding: 2px 0px;
      border: 1px solid #ddd;
      font-size: 16px;
      background-color: #f5fafe;
  }
  .table-left{
      text-align: left;
      padding: 0px 0px 0px 10px !important;
  }
  .table-right{
      text-align: right;
      padding: 0px 10px 0px 0px !important;
      background-color: #f5fafe;
  }
  .Specifications_item{
    padding: 0;
    margin: 2px 0 0 0;
    display: flex;
  }
  .product-table td {
      font-size: 16px;
      padding: 2px 0px;
      border: 1px solid #ddd;
      vertical-align: middle;
  }
  .header-row th{
      text-align: center;
  }
/* 规格参数 */

/* 收藏按钮样式 */
.favorite-section {
    margin-top: 12px;
    text-align: center;
    padding: 8px 0;
}

.favorite-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
}

.favorite-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

.favorite-btn.favorited {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

.favorite-btn.favorited:hover {
    background: #ff5252;
    border-color: #ff5252;
}

.favorite-btn i {
    font-size: 14px;
    transition: all 0.2s ease;
}

.favorite-btn.favorited i {
    color: white;
}

/* 收藏按钮动画效果 */
@keyframes favoriteClick {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.favorite-btn.clicked {
    animation: favoriteClick 0.2s ease;
}