/* ============================================
   AI视觉检测详情页专用样式
   ============================================ */

/* Hero 蓝色主题 - 与其他页面保持一致 */
.ai-detect-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* 四大产品优势 */
.detect-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.detect-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);
}

.detect-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.detect-feature-card .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;
}

.detect-feature-card .feature-icon-wrapper svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.detect-feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
}

.detect-feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px;
}

.detect-feature-card p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* 检测演示布局 */
.detection-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.detection-demo.reverse {
  direction: rtl;
}

.detection-demo.reverse > * {
  direction: ltr;
}

.detection-demo .demo-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.detection-demo .demo-image-wrapper img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.detection-demo .demo-image-wrapper:hover img {
  transform: scale(1.03);
}

.detection-demo .demo-info {
  padding: 20px 0;
}

.detection-demo .demo-info h4 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 16px;
}

.detection-demo .demo-info > p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.8;
  margin: 0 0 24px;
}

.detection-demo .demo-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detection-demo .demo-features li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}

.detection-demo .demo-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
}

/* 场景1绿色 */
.scenario-recognition .detection-demo .demo-features li::before {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* 场景2蓝色 */
.scenario-measure .detection-demo .demo-features li::before {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* 场景3橙色 */
.scenario-guide .detection-demo .demo-features li::before {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

/* 紫色徽章 */
.scenario-badge-purple {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%) !important;
  color: #7c3aed !important;
}

/* 案例视频区域 */
.case-videos-section {
  padding: 80px 0;
  background: #f8fafc;
}

.case-videos-section .section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 48px;
}

.case-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.case-video-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.case-video-card .case-video-container {
  position: relative;
  cursor: pointer;
}

.case-video-card .video-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-video-card .video-play-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.case-video-card .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);
}

.case-video-card .play-btn-circle svg {
  width: 32px;
  height: 32px;
  color: #2196F3;
  margin-left: 4px;
}

.case-video-card .case-video-container:hover .play-btn-circle {
  transform: scale(1.1);
  background: white;
}

.case-video-card .play-hint {
  color: white;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.case-video-card .video-label {
  padding: 16px 20px;
  background: white;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
}

/* 视频模态框 */
.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);
}

@media (max-width: 768px) {
  .case-videos-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-videos-section .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .case-video-card .play-btn-circle {
    width: 56px;
    height: 56px;
  }

  .case-video-card .play-btn-circle svg {
    width: 24px;
    height: 24px;
  }
}

/* 响应式设计 */
@media (max-width: 992px) {
  .detect-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .detection-demo {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detection-demo.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .detect-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .detect-feature-card {
    padding: 20px 16px;
  }

  .detect-feature-card .feature-icon-wrapper {
    width: 52px;
    height: 52px;
  }

  .detect-feature-card .feature-icon-wrapper svg {
    width: 26px;
    height: 26px;
  }

  .detect-feature-card h3 {
    font-size: 16px;
  }

  .detection-demo .demo-info h4 {
    font-size: 20px;
  }

  .detection-demo .demo-info > p {
    font-size: 14px;
  }

  .detection-demo .demo-features li {
    font-size: 14px;
    padding-left: 24px;
  }
}

@media (max-width: 576px) {
  .detect-features {
    gap: 12px;
    margin-top: 32px;
  }

  .detect-feature-card {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .detect-feature-card .feature-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .detect-feature-card .feature-icon-wrapper svg {
    width: 22px;
    height: 22px;
  }

  .detect-feature-card h3 {
    font-size: 14px;
  }

  .detect-feature-card p {
    font-size: 11px;
  }

  .detection-demo .demo-info h4 {
    font-size: 18px;
  }

  .detection-demo .demo-info > p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .detection-demo .demo-features {
    gap: 10px;
  }

  .detection-demo .demo-features li {
    font-size: 13px;
  }
}

