/* ========== 产品展示页面 ========== */
.products-main {
  padding: 60px 0;
  background-color: #fff;
}

.products-main .container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ========== 产品概览页 ========== */
.products-overview {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 60px;
  text-align: center;
}

.overview-title {
  font-size: 48px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.overview-subtitle {
  font-size: 32px;
  font-weight: 300;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  text-align: center;
}

.product-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0 auto;
}

.product-card {
  background-color: var(--color-bg-gray);
  padding: 20px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 5px;
  font-weight: 600;
}

.product-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-btn {
  padding: 8px 24px;
  font-size: 14px;
  color: #333;
  background-color: transparent;
  border: 1px solid #ccc;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.product-card-btn:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  background-color: #fff;
}

@media (max-width: 1200px) {
  .product-card-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .overview-title {
    font-size: 36px;
  }

  .overview-subtitle {
    font-size: 24px;
  }

  .product-card-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-card-list {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 200px;
  }
}

/* ========== 产品详情页（侧边栏+内容） ========== */
.products-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.products-sidebar {
  width: 240px;
  flex-shrink: 0;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: sticky;
  top: 100px;
  border: 1px solid #f0f0f0;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  background-color: var(--color-orange);
  padding: 18px 20px;
  margin: 0;
  text-align: center;
  letter-spacing: 1px;
}

.product-categories {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  background-color: #fff;
}

.category-item {
  padding: 14px 20px 14px 25px;
  font-size: 16px;
  color: #444;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-bottom: 1px solid #f5f5f5;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.03);
  margin: 0 10px 5px;
  border-radius: 6px;
  background-color: #fafafa;
}

.category-item:last-child {
  margin-bottom: 0;
}

.category-item:hover {
  background-color: #f0f7ff;
  color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.06);
}

.category-item.active {
  color: var(--color-blue);
  background-color: #f0f7ff;
  font-weight: 500;
  box-shadow: 3px 4px 10px rgba(40, 76, 159, 0.1);
  border-left: 4px solid var(--color-blue);
  border-radius: 6px 4px 4px 6px;
}

/* 右侧内容区 */
.products-content {
  flex: 1;
  min-width: 0;
}

.product-detail {
  display: none;
}

.product-detail.active {
  display: block;
}

.product-title {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 40px;
}

.product-section {
  margin-bottom: 35px;
}

.product-section:last-child {
  margin-bottom: 0;
}

.section-heading {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-blue);
  margin-bottom: 20px;
  position: relative;
  padding-left: 15px;
}

.section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background-color: var(--color-orange);
  border-radius: 2px;
}

.product-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

/* 规格列表 */
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-list li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.spec-list li::before {
  content: '•';
  position: absolute;
  left: 5px;
  color: var(--color-blue);
  font-weight: bold;
}

/* 功能特性列表 */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.feature-list li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-orange);
  font-weight: bold;
}

/* 技术指标表格 */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.spec-table tr {
  border-bottom: 1px solid #eee;
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table td {
  padding: 12px 15px;
  font-size: 15px;
  line-height: 1.6;
}

.spec-table .spec-label {
  width: 180px;
  background-color: #f9f9f9;
  font-weight: 500;
  color: var(--color-text-main);
  border-right: 1px solid #eee;
}

/* 两列布局 */
.two-col-layout {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 20px 0;
  justify-content: space-around;
}

.two-col-layout .col-image {
  flex: 0 0 40%;
  max-width: 40%;
}

.two-col-layout .col-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.two-col-layout.image-left .col-image {
  order: 1;
}

.two-col-layout.image-left .col-content {
  order: 2;
}

.two-col-layout.image-right .col-image {
  order: 2;
}

.two-col-layout.image-right .col-content {
  order: 1;
}

/* 功能网格 */
.function-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 30px 0 25px;
}

.function-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.function-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--color-blue);
}

.function-image {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #f5f5f5;
  overflow: hidden;
}

.function-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.function-card:hover .function-image img {
  transform: scale(1.05);
}

.function-info {
  padding: 15px 12px 18px;
  text-align: center;
}

.function-info h4 {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.function-info p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-close:hover {
  color: var(--color-orange);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 16px;
  padding: 10px;
}

/* 产品特点对比表格 */
.table-wrapper {
  overflow-x: auto;
  margin: 25px 0 15px;
  border-radius: 12px;
  border: 1px solid #eaeaea;
  background-color: #fff;
}

.feature-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 800px;
}

.feature-comparison-table th {
  background-color: var(--color-blue);
  color: white;
  font-weight: 500;
  padding: 15px 20px;
  text-align: center;
}

.feature-comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #eaeaea;
  vertical-align: top;
  line-height: 1.6;
}

.feature-comparison-table .feature-label {
  background-color: #f5f9ff;
  font-weight: 500;
  color: var(--color-text-main);
  width: 140px;
  text-align: left;
}

/* 应急装置专用样式 */
.performance-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.performance-list li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.performance-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--color-orange);
}

.method-steps-vertical {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 30px 0;
}

.method-step-vertical {
  background-color: #f9f9f9;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-step-vertical:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--color-blue);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.step-number {
  width: 48px;
  height: 48px;
  background-color: var(--color-orange);
  color: white;
  font-size: 22px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 15px rgba(235, 102, 102, 0.25);
}

.step-header h4 {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-main);
  margin: 0;
}

.step-description {
  margin-bottom: 25px;
  padding-left: 63px;
}

.step-description p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
}

.step-image {
  margin-left: 63px;
  width: 50%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background-color: #f0f0f0;
  aspect-ratio: 16/9;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.method-step-vertical:hover .step-image img {
  transform: scale(1.03);
}

/* 响应式 */
@media (max-width: 992px) {
  .products-wrapper {
    flex-direction: column;
  }

  .products-sidebar {
    width: 100%;
    position: static;
    top: auto;
  }

  .product-categories {
    display: flex;
    flex-wrap: wrap;
  }

  .category-item {
    flex: 1 1 auto;
    text-align: center;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .category-item.active {
    border-left-color: transparent;
    border-bottom-color: var(--color-blue);
  }

  .two-col-layout {
    flex-direction: column;
    gap: 20px;
  }

  .two-col-layout .col-image,
  .two-col-layout .col-content {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .two-col-layout.image-left .col-image,
  .two-col-layout.image-left .col-content,
  .two-col-layout.image-right .col-image,
  .two-col-layout.image-right .col-content {
    order: 0;
  }

  .function-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .product-title {
    font-size: 26px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table .spec-label {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .step-description {
    padding-left: 0;
  }

  .step-image {
    margin-left: 0;
    width: 100%;
  }

  .step-header h4 {
    font-size: 20px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .function-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .function-image {
    aspect-ratio: 16/9;
  }

  .step-image {
    aspect-ratio: 1/1;
  }
}