/* ========== 产品首页独立样式 - product-home.html ========== */

/* ---------- 公共工具类（页面级） ---------- */
.hidden { display: none !important; }

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: var(--fs-caption);
  border-radius: 4px;
}

/* ========== Hero 区域 ========== */
.product-hero {
  position: relative;
  height: 100vh;
  height: 100dvh;   /* 动态视口：移动端地址栏伸缩时实时跟随，避免海报显示不全 */
  min-height: 560px;
  overflow: hidden;
  width: 100%;
}
.product-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.product-hero > .container {
  position: relative;
  z-index: 2;
  max-width: 100% !important;
  padding-left: 80px !important;
  padding-right: 80px !important;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-content h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-content p {
  color: #fff;
  font-size: var(--fs-h4);
  line-height: 1.8;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
  max-width: 500px;
}

/* 页面级 section-title 覆盖 */
.product-hero ~ section .section-title {
  font-size: var(--fs-h1);
  font-weight: 600;
  color: #111;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 0.5px;
}

/* ========== 更安全·主动守护 ========== */
.safety-section {
  background: #fff;
  padding: 90px 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}
/* 全模块背景图容器 */
.safety-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}
.safety-bg-container .bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transition: opacity 0.5s ease;
}
.safety-bg-container .bg-image.active { opacity: 1; }
.safety-bg-container .bg-image { opacity: 0; position: absolute; top: 0; left: 0; }
.safety-bg-container .bg-image:first-child { position: relative; opacity: 1; }
.safety-bg-container .bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.safety-section > .container {
  max-width: 100% !important;
  padding-left: 80px !important;
  padding-right: 80px !important;
  position: relative;
  z-index: 2;
}
.safety-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}
.safety-left {
  flex: 3 1 0;
}
.safety-right {
  flex: 1;
  position: relative;
  min-height: 480px;
}
/* 悬浮按钮 */
.safety-tabs-float {
  position: absolute;
  top: 0;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}
.safety-tab-btn {
  width: auto;
  height: auto;
  padding: 12px 36px;
  border: 1.5px solid #00AFFF;
  border-radius: var(--btn-radius);
  background: rgba(255,255,255,0.95);
  color: #00AFFF;
  font-size: var(--fs-lead);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(4px);
}
.safety-tab-btn:hover,
.safety-tab-btn.active {
  background: #00AFFF;
  color: #fff;
}
/* 安全部件 */
.safety-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 14px;
  /* border: 1px solid #eee; */
  transition: all 0.3s ease;
}
.safety-item:last-child { margin-bottom: 0; }
.safety-icon {
  width: 220px;
  height: 120px;
  flex-shrink: 0;
}
.safety-info {
  border-left: #00AFFF 3px solid;
  margin-top: 30px;
  padding-left: 30px;
}
.safety-info h6 {
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-bottom: 6px;
}
.safety-info p {
  font-size: var(--fs-body);
  color: #777;
  line-height: 2;
  margin: 0;
}
/* 内容切换动画 */
.safety-content-panel {
  transition: all 0.35s ease;

  padding: 50px;background-color: #fff; border-radius: 8px;
}
.safety-content-panel.hidden { display: none; }

/* 左右分栏banner布局：左图右文 */
.safety-banner-layout {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  width: 100%;
}
.safety-banner-img {
  flex: 0 0 55%;
  border-radius: 8px;
  overflow: hidden;
}
.safety-banner-img .img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: var(--fs-caption);
}
.safety-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.safety-banner-text {
  flex: 1;
  min-width: 0;
}
.safety-banner-title {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
  line-height: 1.6;
}
.safety-point-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.safety-point-list li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-body);
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}
.safety-point-list li:last-child { margin-bottom: 0; }
.safety-point-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
}

/* ========== 更舒适·主动调节 ========== */
.comfort-section {
  padding: 90px 0;
  width: 100%;
}
.comfort-section > .container {
  max-width: 100% !important;
  padding-left: 80px !important;
  padding-right: 80px !important;
}
.comfort-card {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}
.comfort-card-header {
  padding: 20px 24px 12px;
}
.comfort-card-header h4 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: 10px;
}
.comfort-card-header p {
  font-size: var(--fs-body);
  color: #555;
  line-height: 1.75;
  margin: 0 0 20px 0;
}
.comfort-img-wrap {
  border-radius: 10px;
  overflow: hidden;
}
.comfort-img-wrap .img-placeholder,
.comfort-img-wrap img {
  width: 100%;
  height: 450px;
  display: block;
  object-fit: cover;
}

/* ========== 更美观·主动适配 ========== */
.aesthetic-section {
  background: #f5f7fa;
  padding: 90px 0;
  width: 100%;
  overflow: hidden;
}
.aesthetic-section > .container,
.aesthetic-section > .container-fluid {
  max-width: 100% !important;
  padding-left: 80px !important;
  padding-right: 80px !important;
}
.aesthetic-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.aesthetic-tab-btn {
  width: auto;
  height: auto;
  padding: 12px 36px;
  border: 1.5px solid #00AFFF;
  border-radius: var(--btn-radius);
  background: #fff;
  color: #00AFFF;
  font-size: var(--fs-lead);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}
.aesthetic-tab-btn.active,
.aesthetic-tab-btn:hover {
  background: #00AFFF;
  color: #fff;
}
/* 滚动容器 */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 50%;
  min-width: 0;
  padding: 0 15px;
  flex-shrink: 0;
  box-sizing: border-box;
}
.slide-content {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 100%;
}
.slide-product-img {
  flex: 0 0 200px;
}
.slide-product-img .img-placeholder,
.slide-product-img img {
  width: 200px;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.slide-info {
  flex: 1;
  min-width: 0;
}
.slide-info .product-name {
  font-size: var(--fs-h3);
  color: #00AFFF;
  font-weight: 700;
  margin-bottom: 12px;
}
.slide-info .product-specs {
  font-size: var(--fs-body);
  color: #000;
  line-height: 2;
}
.slide-qrcode {
  flex: 0 0 90px;
  text-align: center;
}
.slide-qrcode .img-placeholder,
.slide-qrcode img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 6px;
  display: inline-block;
}
.slide-qrcode span {
  font-size: var(--fs-caption);
  color: #888;
}
/* 轮播控制条：左右按钮（下方居中） */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}
/* 左右箭头（纯 CSS 三角箭头，不依赖图片） */
.carousel-arrow {
  width: 56px;
  height: 56px;
  background: #fff;
  border: 1.5px solid #00AFFF;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0,175,255,0.15);
  position: relative;
}
.carousel-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-left: 2.5px solid #00AFFF;
  border-bottom: 2.5px solid #00AFFF;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: border-color 0.25s;
}
.carousel-arrow.next::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}
.carousel-arrow:hover {
  background: #00AFFF;
  opacity: 1;
  box-shadow: 0 4px 14px rgba(0,175,255,0.35);
}
.carousel-arrow:hover::before {
  border-color: #fff;
}

/* 人机界面升级（interface）组：参考 pcu-hmi-track 样式 */
.interface-slide {
  min-width: 100%;
}
.interface-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(20px, 2.5vw, 36px);
}
.interface-title {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: #111;
  margin: 0;
}
/* 横向滚动容器 */
.interface-track {
  display: flex;
  gap: clamp(16px, 1.8vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.interface-track::-webkit-scrollbar { display: none; }
.interface-item {
  flex: 0 0 160px;
  text-align: center;
  scroll-snap-align: start;
}
.interface-model {
  display: inline-block;
  font-size: var(--fs-body);
  font-weight: 600;
  color: #666666;
  letter-spacing: 1px;
  margin-bottom: clamp(8px, 0.9vw, 14px);
  height: 60px;
}
.interface-panel {
  text-align: center;
}
.interface-panel img {
  display: block;
  margin: 0 auto;
  height: auto;
}

/* ========== 产品选型 ========== */
.config-section {
  background: #fff;
  padding: 80px 0;
  width: 100%;
}
.config-section > .container {
  max-width: 100% !important;
  padding-left: 60px !important;
  padding-right: 60px !important;
}
.config-section .section-title {
  text-align: left !important;
  margin-bottom: 20px;
  font-size: var(--fs-h1);
  font-weight: 700;
  color: #000;
}
.config-subtitle {
  text-align: left;
  color: #000;
  font-size: var(--fs-h4);
  margin-bottom: 16px;
  font-weight: 600;
}
.config-desc {
  text-align: left;
  color: #333;
  font-size: var(--fs-body);
  line-height: 2;
  margin-bottom: 80px;
}
/* 左右各50%布局 */
.config-layout {
  display: flex;
  gap: 0;
  align-items: stretch;
}
/* 左侧50% - 固定内容 */
.config-left-fixed {
  flex: 0 0 50%;
  padding-right: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* 井道类型3图 */
.well-types {
  display: flex;
  gap: 30px;
  justify-content: flex-start;
  margin-top: 10px;
}
.well-type-item {
  text-align: center;
  flex: 0 0 auto;
}
.well-type-item .img-placeholder,
.well-type-item img {
  width: 170px;
  height: 250px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}
.well-type-item span {
  color: #00a0e9;
  font-size: var(--fs-body);
  font-weight: 500;
}
/* 右侧50% - 产品滚动 */
.config-right-scroll {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  padding-left: 20px;
}
.config-products-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.config-product-card {
  flex: 0 0 calc(50% - 15px);
  min-width: 260px;
  text-align: center;
}
.config-product-card .img-placeholder,
.config-product-card img {
  width: 100%;
  max-width: 260px;
  height: 640px;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
}
.config-product-card .product-label {
  color: #00a0e9;
  font-size: var(--fs-body);
  font-weight: 500;
}
.config-product-card h5 {
  color: #00a0e9;
  font-size: var(--fs-h3);
  font-weight: 500;
}
/* 导航按钮容器 - 右上角 */
.config-nav-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.config-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.25s;
}
.config-nav-btn img {
  display: block;
  width: auto;
  height: auto;
}
.config-nav-btn:hover {
  opacity: 0.85;
}

/* ========== 切换动画 ========== */
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ========== 响应式 ========== */
@media (max-width: 991px) {
  /* Hero区域 */
  .product-hero { height: 100vh; height: 100dvh; min-height: 520px; }
  .product-hero > .container { padding-left: 30px !important; padding-right: 30px !important; }
  .hero-content h1 { font-size: var(--fs-hero); }
  .hero-content p { font-size: var(--fs-h4); max-width: 100%; }

  /* 安全模块 */
  .safety-section > .container { padding-left: 20px !important; padding-right: 20px !important; }
  .comfort-section > .container,
  .aesthetic-section > .container-fluid,
  .config-section > .container { padding-left: 20px !important; padding-right: 20px !important; }
  .comfort-img-wrap .img-placeholder,
  .comfort-img-wrap img { height: 220px; }
  .safety-wrapper { flex-direction: column; gap: 24px; }
  .safety-left { flex: none; width: 100%; }
  .safety-right { min-height: 0; order: -1; }
  .safety-content-panel { padding: 24px 16px !important; }
  .safety-item { gap: 12px; }
  .safety-icon { width: 84px; height: 64px; flex: 0 0 84px; }
  .safety-info { margin-top: 0; padding-left: 12px; }
  .safety-tabs-float { position: static; flex-direction: row; justify-content: center; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
  .safety-tab-btn { width: auto; height: auto; padding: 12px 24px; font-size: var(--fs-lead); border-radius: var(--btn-radius); }

  /* 美观模块-轮播 */
  .carousel-slide { flex: 0 0 90%; }
  .interface-slide { flex: 0 0 100%; }
  .slide-content { flex-direction: column; }
  .slide-product-img { flex: none; width: 100%; }
  .slide-product-img .img-placeholder,
  .slide-product-img img { width: 100%; height: auto; max-height: 250px; }
  .slide-qrcode { flex: none; }

  /* 产品选型 */
  .config-layout { flex-direction: column; }
  .config-left-fixed { flex: none; width: 100%; padding-right: 0; margin-bottom: 40px; }
  .config-right-scroll { flex: none; width: 100%; padding-left: 0; }
  .config-product-card { flex: 0 0 calc(50% - 15px); }
  .config-nav-wrapper { position: static; justify-content: center; margin-bottom: 20px; }
  .well-types { justify-content: center; gap: 20px; }
  .section-title { font-size: var(--fs-h2); margin-bottom: 30px; }
}

@media (max-width: 768px) {
  .safety-banner-layout { flex-direction: column; gap: 24px; }
  .safety-banner-img { flex: none; width: 100%; }
  .safety-banner-title { font-size: var(--fs-h4); }
  .safety-point-list li { font-size: var(--fs-body); }
  /* 美观模块轮播：轿厢装潢文字多，手机端一屏 1 个、图文纵向堆叠 */
  .carousel-slide[data-group="style"] { flex: 0 0 92%; max-width: 92%; }
  /* 人机界面/配件升级是整屏面板 */
  .interface-slide, .accessory-slide { flex: 0 0 100%; max-width: 100%; }
  .slide-content { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .slide-product-img { flex: none; width: 100%; }
  /* 图片按原比例显示，不变形 */
  .slide-product-img .img-placeholder,
  .slide-product-img img { width: 100%; height: auto; max-height: none; object-fit: contain; }
  .slide-qrcode { flex: none; text-align: center; }
  .slide-info .product-name { font-size: var(--fs-h3); }
  .slide-info .product-specs { font-size: var(--fs-body); line-height: 1.8; }

  /* 更美观模块：手机端取消 PC 版 80px 容器内边距 */
  .aesthetic-section > .container,
  .aesthetic-section > .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* aesthetic 分类按钮：手机端一行 2 个 */
  .aesthetic-tabs { gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
  .aesthetic-tab-btn {
    flex: 0 0 calc(50% - 5px);
    max-width: none;
    padding: 10px 8px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .product-hero { height: 100vh; height: 100dvh; min-height: 480px; }
  .hero-content h1 { font-size: var(--fs-hero); }
  .hero-content p { font-size: var(--fs-h4); }
  /* 产品选型：手机端一行 2 个 */
  .config-product-card { flex: 0 0 88%; min-width: 0; }
  .config-product-card .img-placeholder,
  .config-product-card img { max-width: 100%; height: auto; }
  .well-types { flex-direction: column; align-items: center; gap: 25px; }
  .well-type-item .img-placeholder, .well-type-item img { width: 120px; height: 140px; }
  .safety-tab-btn { width: 100%; max-width: 280px; }
}
