/* =====================================================================
 * product-detail.css - Product Detail Page Styles
 * ===================================================================== */

.product-detail-page {
  padding-top: 80px;
}

.product-detail-page p a,
.product-detail-page ul a {
  color: #1e6ffa;
  text-decoration: none;
}

.product-detail-page p a:hover,
.product-detail-page ul a:hover{
  text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb-section {
  background-color: #f8f8f8;
  padding: 15px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .separator {
  color: #999;
}

.breadcrumb .current {
  color: #333;
  font-weight: 500;
}

/* Product Hero */
.product-hero {
  padding: 50px 0;
  background: linear-gradient(to right, rgba(66, 74, 210, 0.2) 0%, 40%, rgba(66, 74, 210, 0) 65%);
}

.product-hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Image Gallery */
.product-hero__gallery {
  position: sticky;
  top: 100px;
}

.gallery-main {
  width: 100%;
  height: 400px;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ccc;
  background: #fff;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.thumbnail {
  width: 100%;
  height: 80px;
  object-fit: contain;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
  background: #fff;
}

.thumbnail:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: var(--primary);
}

/* ========== 画廊视频播放器 + 小窗切换 ========== */
.gallery-main video.main-video {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: contain;
  background: #000;
}

.gallery-main video.main-video.active {
  display: block;
}

.gallery-main img.main-image {
  display: none;
}

.gallery-main img.main-image.active {
  display: block;
}

.thumbnail.video-thumb {
  position: relative;
  height: 80px;
  overflow: hidden;
  background: #000;
  padding: 0;
}

.thumbnail.video-thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.thumbnail.video-thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  border-radius: 50%;
  pointer-events: none;
}

/* Product Info */
.product-hero__info h1 {
  font-size: 28px;
  color: #222;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary);
}

.product-description {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.product-specs-snapshot {
  border-radius: 10px;
  margin-bottom: 15px;
}

.product-specs-snapshot ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-specs-snapshot li {
  display: flex;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  line-height: 1.5;
  gap: 10px;
}

.product-specs-snapshot .spec-label {
  text-align: right !important;
  font-weight: 500;
  white-space: nowrap;
  width: auto;
  min-width: 30%;
}

.product-specs-snapshot .spec-value {
  text-align: left;
  color: #666;
}

.product-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.action-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
  margin-top: 10px;

}

.action-note i{
  color: var(--primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background-color: var(--primary);
  color: #fff;
  flex: 1;
}

.btn-primary:hover {
  background-color: var(--accent);
}

/* ========== Product Overview ========== */


/* 标题下方短横线 */
h2.section-title {
  position: relative;
  border-bottom: none;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 28px;
}

h2.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Overview Text：左右各占一半，高度一致 */
.product-overview-text {
  /* margin: 30px auto 0; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.overview-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overview-right {
  display: flex;
}

.product-overview-text .overview-right img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  max-height: 400px;
}

.product-overview-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ========== Features Cards (5 个横向卡片，竖线分隔) ========== */
.features-section{
  background-color: rgba(66, 74, 210, 0.1);
}

.features-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 20px;
}

.feature-card {
  padding: 10px 24px;
  text-align: left;
  border-right: 1px solid #ccc;
}

.feature-card:last-child {
  border-right: none;
}

.feature-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 15px;
  display: block;
}

.feature-card h3 {
  font-size: 17px;
  color: #222;
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* Specs Table */
.specs-table-wrapper {
  margin: 40px auto 0;
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.specs-table thead {
  background: var(--primary);
  color: #fff;
}

.specs-table thead tr th {
  padding: 10px 5px !important;
}

.specs-table td {
  padding: 10px 20px;
  border-bottom: 1px solid #e9ecef;
  font-size: 16px;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table td:first-child {
  width: 35%;
  background-color: #f8f9fa;
  font-weight: 500;
}

/* Working Principle */
.working-principle {
  margin: 40px auto 0;
}

.process-flow-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  margin-bottom: 30px;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 120px;
  text-align: center;
}

.step-icon {
  width: 70px;
  height: 70px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon i {
  font-size: 28px;
  color: var(--primary);
}

.process-step span {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.process-flow-horizontal .arrow {
  font-size: 24px;
  color: var(--primary);
}

.process-description {
  margin: 0 auto;
}

.process-description p {
  font-size: 16px;
  line-height: 1.8;
  color: #fff;
  text-align: center;
}

/* Applications Image Grid */
.applications-image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.application-image-item {
  padding-bottom: 15px;
  text-align: left;
  transition: transform 0.3s ease;
}

.application-image {
  width: 100%;
  height: 250px;
  border-radius: 0px;
  overflow: hidden;
  margin-bottom: 15px;
}

.application-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.application-image-item:hover .application-image img {
  transform: scale(1.1);
}

.application-image-item h3 {
  color: #222;
  margin: 0;
}

/* Related Products */
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
  margin-top: 40px;
}

.related-product-card {
  background-color: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.related-product-image {
  width: 100%;
  height: 250px;
  padding: 15px;
  overflow: hidden;
}

.related-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
  transform: scale(1.1);
}

.related-product-card .related-card-name {
  color: #222;
  padding: 20px 20px 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.related-product-card .related-card-name:hover{
  color: var(--primary);
}

.related-product-card p {
  padding: 0 20px;
  margin: 0;
  flex: 1;
}


/* FAQ Section */
.faq-container {
  margin: 40px auto 0;
}

.faq-item {
  background-color: #fff;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f8f9fa;
}

.faq-question h3 {
  color: #222;
  font-size: 20px;
  margin: 0;
  flex: 1;
}

.faq-question i {
  font-size: 18px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 25px 30px 25px;
}

.faq-answer p {
  line-height: 1.8;
  margin: 0;
}

/* Inquiry CTA Section */
.inquiry-cta-section {
  background: linear-gradient(to right,  rgba(0, 82, 163,1) 0%, rgba(0, 82, 163,0) 100%), url(/img/banner/banner-5.webp) no-repeat center center;
  background-blend-mode: multiply;
  background-size: cover;
  padding: 40px 0;
}

.inquiry-cta-section .section-content{
  display: flex;
  justify-content: space-between;
}

.inquiry-cta-section .section-content h2{
  font-size: 28px;
  max-width: 800px;

}

.inquiry-cta-description {
  font-size: 16px;
  opacity: 0.95;
  max-width: 800px;
}

.inquiry-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.btn-cta-white,
.btn-cta-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #fff;
  min-height: 40px;
}

.btn-cta-white {
  background-color: #fff;
  color: var(--primary);
}

.btn-cta-white:hover {
  background-color: transparent;
  color: #fff;
}

.btn-cta-outline-white {
  background-color: transparent;
  color: #fff;
}

.btn-cta-outline-white:hover {
  background-color: #fff;
  color: var(--primary);
}

.inquiry-contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 15px;
}

.contact-info-item i {
  font-size: 20px;
  opacity: 0.9;
}

/* Sticky Mobile CTA */
.sticky-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 15px 20px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta-mobile.visible {
  transform: translateY(0);
}

.btn-sticky-quote {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-sticky-quote:hover {
  background-color: #0052a3;
}

/* ========== Responsive Design ========== */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .product-hero__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-hero__gallery {
    position: static;
  }

  /* Overview 在平板以下堆叠 */
  .product-overview-text {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* 5 卡片 → 3 列 */
  .features-cards {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 30px;
  }

  .feature-card:nth-child(3n) {
    border-right: none;
  }

  .feature-card:nth-child(3n) ~ .feature-card {
    border-right: 1px solid #e0e0e0;
  }

  .applications-image-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .related-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {

  .product-detail-page {
    padding-top: 70px;
  }
  .product-hero {
    padding: 30px 0;
  }

  .product-hero__info h1 {
    font-size: 28px;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .thumbnail {
    height: 80px;
  }

  .thumbnail.video-thumb {
    height: 80px;
  }

  .product-cta {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
    min-width: auto;
  }

  .product-specs-snapshot li {
    flex-direction: column;
  }

  .product-specs-snapshot .spec-label {
    text-align: left !important;
    white-space: nowrap;
    width: 100%;
    background: #f9f9f9;
    padding: 8px 5px;
  }

  .product-specs-snapshot .spec-value {
    text-align: left;
    color: #222;
    padding: 0 5px;
  }

  /* 5 卡片 → 2 列 */
  .features-cards {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .feature-card {
    border-right: none;
  }

  .specs-table td {
    padding: 12px 15px;
    font-size: 14px;
  }

  .specs-table td:first-child {
    width: 40%;
  }

  .process-flow-horizontal {
    flex-direction: column;
    padding: 30px 20px;
  }

  .process-flow-horizontal .arrow {
    transform: rotate(90deg);
  }

  .applications-image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .application-image {
    height: 150px;
  }

  .application-image-item h3 {
    font-size: 14px;
  }

  .related-products-grid {
    grid-template-columns: 1fr;
  }

  .inquiry-cta-section {
    padding: 30px 0;
  }

  .inquiry-cta-section .section-content{
    display: flex;
    flex-direction: column;
  }

  .inquiry-cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .btn-cta-white,
  .btn-cta-outline-white {
    width: 100%;
    justify-content: center;
  }

  .inquiry-contact-info {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .contact-info-item {
    text-align: center;
    flex-direction: column;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-question h3 {
    font-size: 16px;
  }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
  .product-hero__info h1 {
    font-size: 24px;
  }

  .product-description {
    font-size: 15px;
  }

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

  .thumbnail {
    height: 70px;
  }

  .product-specs-snapshot {
    padding: 0;
  }

  .product-specs-snapshot li {
    font-size: 14px;
  }

  /* 5 卡片 → 1 列，横向分隔线 */
  .features-cards {
    grid-template-columns: 1fr;
  }

  .feature-card {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 10px;
  }

  .feature-card:last-child {
    border-bottom: none;
  }

  .feature-card i {
    font-size: 28px;
  }

  .feature-card h3 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 13px;
  }

  .specs-table td {
    padding: 10px;
    font-size: 13px;
  }

  .process-step {
    max-width: 100px;
  }

  .step-icon {
    width: 60px;
    height: 60px;
  }

  .step-icon i {
    font-size: 24px;
  }

  .process-step span {
    font-size: 12px;
  }

  .applications-image-grid {
    grid-template-columns: 1fr;
  }

  .inquiry-cta-description {
    font-size: 16px;
  }

  .btn-cta-white,
  .btn-cta-outline-white {
    font-size: 15px;
    padding: 14px 24px;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .mobile-nav,
  .mobile-nav-overlay,
  .sticky-cta-mobile,
  .product-cta,
  .inquiry-cta-buttons,
  .btn-view-product {
    display: none !important;
  }

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

  .product-hero__gallery {
    page-break-inside: avoid;
  }

  .features-cards,
  .applications-image-grid,
  .related-products-grid {
    page-break-inside: avoid;
  }

  body {
    font-size: 12px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 16px;
  }
}