/* ============================================
   视觉传感器详情页专用样式
   ============================================ */

/* 四大产品优势 */
.sensor-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.sensor-feature-card {
  background: white;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sensor-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.feature-icon-wrapper svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.sensor-feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
}

.sensor-feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px;
}

.sensor-feature-card p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* 产品系列部分 */
.sensor-series-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.sensor-series-section .section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 48px;
}

.sensor-series-block {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.sensor-series-block:last-child {
  margin-bottom: 0;
}

.series-header {
  text-align: center;
  margin-bottom: 32px;
}

.series-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 16px;
  margin-bottom: 12px;
}

.series-badge-blue {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
}

.series-badge-purple {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #7c3aed;
}

.series-badge-green {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #16a34a;
}

.series-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
}

.series-desc {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

.series-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.spec-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.spec-card:hover {
  background: white;
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.spec-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-icon svg {
  width: 24px;
  height: 24px;
  stroke: #0284c7;
}

.spec-card h4 {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin: 0 0 6px;
}

.spec-card p {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* 占位符样式 */
.scenario-placeholder {
  padding: 60px 40px;
  text-align: center;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px dashed #e2e8f0;
}

.scenario-placeholder p {
  font-size: 16px;
  color: #94a3b8;
  margin: 0;
}

/* 五大核心功能网格 */
.sensor-functions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.sensor-function-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sensor-function-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.function-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

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

.function-image:hover img {
  transform: scale(1.05);
}

.function-image .image-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.function-image .image-zoom-hint svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

.function-image:hover .image-zoom-hint {
  opacity: 1;
}

.function-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.function-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px;
}

.function-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 12px;
  flex: 1;
}

.function-output {
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.function-output .output-label {
  font-weight: 600;
  color: #1e293b;
}

.function-icon {
  padding: 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef2f2;
}

.function-icon svg {
  width: 40px;
  height: 40px;
  stroke: #dc2626;
}

/* 响应式 - 五大功能网格 */
@media (max-width: 1200px) {
  .sensor-functions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sensor-functions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .function-info {
    padding: 12px;
  }

  .function-info h4 {
    font-size: 14px;
  }

  .function-desc {
    font-size: 12px;
  }

  .function-output {
    font-size: 11px;
    padding: 6px 10px;
  }

  .function-icon {
    padding: 12px;
  }

  .function-icon svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 576px) {
  .sensor-functions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sensor-function-card {
    flex-direction: row;
    align-items: stretch;
  }

  .function-image {
    width: 120px;
    aspect-ratio: 1;
    flex-shrink: 0;
  }

  .function-info {
    padding: 12px;
  }

  .function-icon {
    display: none;
  }
}

/* 视频演示容器 */
.video-demo-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.video-demo-wrapper {
  position: relative;
}

.video-player-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-play-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.play-btn-circle {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.play-btn-circle svg {
  width: 32px;
  height: 32px;
  color: #f97316;
  margin-left: 4px;
}

.video-player-box:hover .play-btn-circle {
  transform: scale(1.1);
  background: white;
}

.play-hint {
  color: white;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.video-player-box .video-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  font-size: 15px;
  font-weight: 500;
}

/* 视频全屏模态框 */
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.video-modal.active {
  display: flex;
}

.video-modal .modal-video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
}

.video-modal-close:hover {
  color: #f87171;
  transform: rotate(90deg);
}

.video-demo-info {
  padding: 20px 0;
}

.video-demo-info h4 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 16px;
}

.video-demo-info > p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.8;
  margin: 0 0 24px;
}

.video-demo-info .demo-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-demo-info .demo-features li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}

.video-demo-info .demo-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 50%;
}

/* 响应式 */
@media (max-width: 992px) {
  .video-demo-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .video-demo-container {
    gap: 24px;
  }

  .play-btn-circle {
    width: 56px;
    height: 56px;
  }

  .play-btn-circle svg {
    width: 24px;
    height: 24px;
  }

  .play-hint {
    font-size: 12px;
  }

  .video-demo-info h4 {
    font-size: 20px;
  }

  .video-demo-info > p {
    font-size: 14px;
  }

  .video-demo-info .demo-features li {
    font-size: 14px;
    padding-left: 24px;
  }

  .video-demo-info .demo-features li::before {
    width: 8px;
    height: 8px;
    top: 7px;
  }
}

@media (max-width: 576px) {
  .video-player-box {
    border-radius: 12px;
  }

  .play-btn-circle {
    width: 48px;
    height: 48px;
  }

  .play-btn-circle svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
  }

  .video-player-box .video-label {
    font-size: 13px;
    padding: 12px 16px;
  }

  .video-demo-info h4 {
    font-size: 18px;
  }

  .video-demo-info > p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .video-demo-info .demo-features {
    gap: 10px;
  }

  .video-demo-info .demo-features li {
    font-size: 13px;
  }
}

/* 响应式设计 */
@media (max-width: 992px) {
  .sensor-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .series-specs {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sensor-applications {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sensor-series-block {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .sensor-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .sensor-feature-card {
    padding: 20px 16px;
  }
  
  .feature-icon-wrapper {
    width: 52px;
    height: 52px;
  }
  
  .feature-icon-wrapper svg {
    width: 26px;
    height: 26px;
  }
  
  .sensor-feature-card h3 {
    font-size: 16px;
  }
  
  .sensor-series-section {
    padding: 60px 0;
  }
  
  .sensor-series-section .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }
  
  .sensor-series-block {
    padding: 24px;
    border-radius: 16px;
  }
  
  .series-title {
    font-size: 22px;
  }
  
  .series-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .spec-card {
    padding: 16px 12px;
  }
  
  .spec-icon {
    width: 40px;
    height: 40px;
  }
  
  .spec-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .spec-card h4 {
    font-size: 12px;
  }
  
  .spec-card p {
    font-size: 16px;
  }
  
  .application-scenarios-section {
    padding: 60px 0;
  }
  
  .application-scenarios-section .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }
  
  .sensor-applications {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .sensor-app-card {
    padding: 24px 16px;
  }
  
  .app-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
  }
  
  .app-icon svg {
    width: 26px;
    height: 26px;
  }
  
  .sensor-app-card h4 {
    font-size: 16px;
  }
  
  .sensor-app-card p {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .sensor-features {
    gap: 12px;
    margin-top: 32px;
  }
  
  .sensor-feature-card {
    padding: 16px 12px;
    border-radius: 12px;
  }
  
  .feature-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  
  .feature-icon-wrapper svg {
    width: 22px;
    height: 22px;
  }
  
  .sensor-feature-card h3 {
    font-size: 14px;
  }
  
  .sensor-feature-card p {
    font-size: 11px;
  }
  
  .sensor-series-section {
    padding: 48px 0;
  }
  
  .sensor-series-section .section-title {
    font-size: 24px;
  }
  
  .sensor-series-block {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .series-badge {
    font-size: 11px;
    padding: 4px 12px;
  }
  
  .series-title {
    font-size: 18px;
  }
  
  .series-desc {
    font-size: 13px;
  }
  
  .series-specs {
    gap: 10px;
  }
  
  .spec-card {
    padding: 14px 10px;
    border-radius: 10px;
  }
  
  .spec-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-bottom: 8px;
  }
  
  .spec-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .spec-card h4 {
    font-size: 11px;
    margin-bottom: 4px;
  }
  
  .spec-card p {
    font-size: 14px;
  }
  
  .application-scenarios-section {
    padding: 48px 0;
  }
  
  .application-scenarios-section .section-title {
    font-size: 24px;
  }
  
  .sensor-applications {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .sensor-app-card {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
  }
  
  .app-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    flex-shrink: 0;
  }
  
  .app-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .sensor-app-card h4 {
    font-size: 15px;
    margin-bottom: 4px;
  }
  
  .sensor-app-card p {
    font-size: 12px;
    line-height: 1.5;
  }
}


