/* ============================================
   浜у搧璇︽儏椤� Product Detail
   ============================================ */

.product-detail {
  padding: 80px 0;
  background-color: var(--color-bg-light);
}

/* 浜у搧涓诲尯鍩� */
.product-main {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.product-main__inner {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* 宸︿晶鍥剧墖杞挱 */
.product-main__gallery {
  width: 50%;
  flex-shrink: 0;
}

.product-main__swiper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-main__swiper .swiper-slide {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-bg-gray);
}

.product-main__swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-main__swiper .swiper-pagination-bullet {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: all 0.3s ease;
}

.product-main__swiper .swiper-pagination-bullet-active {
  background-color: var(--color-primary);
  width: 32px;
}

/* 鍙充晶浜у搧淇℃伅 */
.product-main__info {
  flex: 1;
  min-width: 0;
}

.product-main__title {
  font-size: 30px;
  font-weight: bold;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.product-main__subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.product-main__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.product-main__tag {
  padding: 4px 12px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 12px;
  border-radius: 4px;
}

/* 鍙傛暟鍒楄〃 */
.product-main__params {
  padding: 24px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 28px;
}

.product-main__param-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14px;
}

.product-main__param-item:last-child {
  margin-bottom: 0;
}

.product-main__param-label {
  width: 100px;
  flex-shrink: 0;
  color: var(--color-text-tertiary);
  text-align: left;
}

.product-main__param-value {
  flex: 1;
  color: var(--color-text-primary);
  font-weight: 500;
}

/* 鎿嶄綔鍖� */
.product-main__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.product-main__price {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-primary);
}

.product-main__price-unit {
  font-size: 14px;
  font-weight: normal;
  color: var(--color-text-secondary);
  margin-left: 4px;
  margin-top: 10px;
}

.product-main__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 32px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border: none;
}

.product-main__btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
}

.product-main__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* 浜у搧璇︽儏 Tab 鍖� */
.product-detail-tabs {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 30px;
}

.product-detail-tabs__header {
  display: flex;
  border-bottom: 1px solid var(--color-border-light);
  padding: 0 30px;
}

.product-detail-tabs__item {
  position: relative;
  padding: 20px 32px;
  font-size: 16px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.product-detail-tabs__item:hover {
  color: var(--color-primary);
}

.product-detail-tabs__item.is-active {
  color: var(--color-primary);
  font-weight: bold;
}

.product-detail-tabs__item.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px 2px 0 0;
}

.product-detail-tabs__content {
  padding: 40px 50px;
}

.product-detail-tabs__panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.product-detail-tabs__panel.is-active {
  display: block;
}

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

/* 浜у搧鎻忚堪闈㈡澘 */
.tab-desc__text {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.tab-desc__text p {
  margin-bottom: 16px;
}

.tab-desc__text h4 {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-text-primary);
  margin: 28px 0 12px;
}

.tab-desc__img {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 30px 0;
}

.tab-desc__img img {
  width: 100%;
  display: block;
}

.tab-desc__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.tab-desc__feature-item {
  padding: 24px;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
}

.tab-desc__feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tab-desc__feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-desc__feature-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
}

.tab-desc__feature-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.tab-desc__feature-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* 瑙勬牸鍙傛暟琛ㄦ牸 */
.tab-specs__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tab-specs__table th,
.tab-specs__table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.tab-specs__table th {
  background-color: var(--color-bg-light);
  color: var(--color-text-primary);
  font-weight: bold;
  width: 30%;
}

.tab-specs__table td {
  color: var(--color-text-secondary);
}

.tab-specs__table tr:last-child th,
.tab-specs__table tr:last-child td {
  border-bottom: none;
}

.tab-specs__table th:last-child,
.tab-specs__table td:last-child {
  border-right: none;
}

/* 搴旂敤妗堜緥 */
.tab-case__text {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-secondary);
}

.tab-case__text p {
  margin-bottom: 16px;
}

.tab-case__item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.tab-case__item:last-child {
  border-bottom: none;
}

.tab-case__item-img {
  width: 200px;
  height: 140px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tab-case__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tab-case__item-body h4 {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.tab-case__item-body p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* 鐩稿叧浜у搧鎺ㄨ崘 */
.product-related {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 50px;
  box-shadow: var(--shadow-sm);
}

.product-related__header {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-related__title {
  font-size: 22px;
  font-weight: bold;
  color: var(--color-text-primary);
  position: relative;
  padding-left: 14px;
}

.product-related__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 22px;
  background-color: var(--color-primary);
  border-radius: 3px;
}

.product-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-related__card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-bg-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-related__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-related__card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-bg-gray);
}

.product-related__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-related__card:hover .product-related__card-img img {
  transform: scale(1.08);
}

.product-related__card-body {
  padding: 18px 20px 22px;
}

.product-related__card-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-text-primary);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.product-related__card:hover .product-related__card-title {
  color: var(--color-primary);
}

.product-related__card-desc {
  font-size: 13px;
  color: var(--color-text-tertiary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 鍝嶅簲寮� */
@media (max-width: 1200px) {
  .product-main {
    padding: 36px;
  }

  .product-main__inner {
    gap: 36px;
  }
}

@media (max-width: 992px) {
  .product-detail {
    padding: 40px 0;
  }

  .product-main {
    padding: 24px;
  }

  .product-main__inner {
    flex-direction: column;
    gap: 30px;
  }

  .product-main__gallery {
    width: 100%;
  }

  .product-main__title {
    font-size: 24px;
  }

  .product-detail-tabs__header {
    padding: 0 16px;
  }

  .product-detail-tabs__item {
    padding: 16px 20px;
    font-size: 14px;
  }

  .product-detail-tabs__content {
    padding: 24px 20px;
  }

  .tab-desc__features {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-related {
    padding: 30px 20px;
  }

  .product-related__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .tab-case__item {
    flex-direction: column;
  }

  .tab-case__item-img {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .product-main__title {
    font-size: 20px;
  }

  .product-main__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-main__btn {
    width: 100%;
  }

  .tab-desc__features {
    grid-template-columns: 1fr;
  }

  .product-related__grid {
    grid-template-columns: 1fr;
  }

  .product-detail-tabs__header {
    overflow-x: auto;
  }

  .product-detail-tabs__item {
    flex-shrink: 0;
  }
}
