/* 商品展示区 */
.product-showcase {
  background-color: #f3f5f7;
  padding: 1.5rem 0 3rem;
}
.product-showcase section {
  margin-bottom: 3rem;
}
/* 标本展示区 */
.specimen-section .specimen-display {
  width: 94.6875rem;
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.specimen-section .specimen-display img {
  width: 100%;
  height: auto;
  display: block;
}
/* 商品网格布局 */
.product-grid {
  width: 94.6875rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 1rem 0;
}
/* 商品卡片样式 */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.product-card .product-image {
  height: 13.75rem;
  overflow: hidden;
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-card .product-info {
  padding: 1.25rem;
  text-align: center;
}
.product-card .product-info h3 {
  font-size: 1.125rem;
  color: #333;
  margin-bottom: 0.625rem;
}
.product-card .product-info p {
  color: #666;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  min-height: 3.5rem;
}
.product-card .product-info .price {
  font-size: 1.25rem;
  color: #e74c3c;
  font-weight: 700;
  margin: 1rem 0;
}
.product-card .product-info .price::before {
  content: '¥';
  font-size: 0.8em;
}
.product-card .product-info .buy-btn {
  display: block;
  padding: 0.625rem;
  background: #FFD700;
  color: #333;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.product-card .product-info .buy-btn:hover {
  background: #ccac00;
}
/* 响应式调整 */
@media (max-width: 1200px) {
  .specimen-display,
  .product-grid {
    width: 95%;
  }
}
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .product-card .product-image {
    height: 10rem;
  }
  .product-card .product-info {
    padding: 1rem;
  }
  .product-card .product-info p {
    min-height: auto;
  }
}
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    max-width: 20rem;
    margin: 0 auto;
  }
}

/* 购买成功弹窗 */
.purchase-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.3s;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.modal-content h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 20px;
    color: #666;
}

.modal-close {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.modal-close:hover {
    background: #45a049;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
    }
    .modal-content h3 {
        font-size: 1.3rem;
    }
}