/**
 * 区域 5：产品功能亮点 (Product Highlights & Intelligent Control Ecosystem)
 * 1. 【适配各种开门方式】：卡片宽度 780px，图标 44px，标题 16px／描述 12px
 * 2. 【智能控制系统】：卡片宽度 680px，右倾悬浮，空出左侧黑框推拉门实景背景，绝不遮挡
 *    - 9 个图标配备 48px 绿色渐变圆球底座（Green Badge Circle），内衬白色图标
 * 3. 【智能音箱平台】：大圆节点 96px／小圆节点 72px，中心 Logo 240px
 * 4. 三个板块背景图均为 1920x820，min-height 已收紧以消除竖直方向多余留白
 */

.highlights-section {
  position: relative;
  width: 100%;
  padding: 80px 0 0;
  background-color: #ffffff;
}

/* 1. 顶部主标题区 */
.highlights-section .section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.highlights-section .eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.highlights-section .title {
  font-size: 38px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.highlights-section .subtitle {
  font-size: 16px;
  color: #444444;
  margin-bottom: 16px;
}

.highlights-section .heading-line {
  width: 40px;
  height: 3px;
  background-color: #007868;
  border-radius: 2px;
  margin: 0 auto;
}

/* ===== 2. 三大子板块轮播容器（左右半透明箭头，与区域 2 Hero 一致） ===== */
.highlights-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* 为底部圆点留出空白，避免遮挡板块内容 */
  padding-bottom: 46px;
}

.highlights-viewport {
  width: 100%;
  overflow: hidden;
}

/* 交互提示词一·6：淡入淡出透明过渡（不再使用 translateX 横向滑动）
   三张 slide 共占同一网格单元：容器高度由最高的 slide 撑开，转场不塌陷、不抖动 */
.highlights-track {
  display: grid;
  width: 100%;
}

.highlights-slide {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  margin-bottom: 0 !important;
  transition: opacity 0.5s ease; /* visibility 不做过渡，避免淡入期间整块被判定为隐藏 */
}

/* 用 !important 压过 .highlight-block-* 后置规则，确保激活项始终可见 */
.highlights-slide.is-active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 左右半透明箭头定位（.hero-arrow 提供半透明圆形视觉） */
.highlights-arrow {
  position: absolute;
  /* 在轮播视口（不含底部圆点区）内垂直居中 */
  top: calc((100% - 46px) / 2);
  transform: translateY(-50%);
}

.highlights-arrow.hero-arrow--prev {
  left: 24px;
}

.highlights-arrow.hero-arrow--next {
  right: 24px;
}

/* 底部圆点 */
.highlights-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.highlights-dots .carousel-dot {
  background-color: rgba(0, 0, 0, 0.28);
}

.highlights-dots .carousel-dot.is-active {
  background-color: var(--color-primary-dark); /* 统一到品牌绿，原蓝色与全站调性冲突 */
}

/* ===== 3. 子板块 1：适配各种开门方式（已验收） ===== */
.highlight-block-1 {
  position: relative;
  width: 100%;
  min-height: 520px;
  background-image: url("../images/r5/block1_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  margin-bottom: 36px;
}

.highlight-block-1 .block-content {
  position: relative;
  width: 100%;
  padding: 32px 0;
}

.block-header-left {
  margin-bottom: 18px;
}

.block-header-left .block-title {
  font-size: 32px;
  font-weight: 700;
  color: #007868;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.block-header-left .block-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #007868;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.block-header-left .block-line {
  width: 50px;
  height: 3.5px;
  background-color: #007868;
  border-radius: 2px;
}

/* 高度改由内容驱动（不再用 aspect-ratio 锁死），避免放大字号后文字撑破格子 */
.opening-methods-card {
  position: relative;
  width: 820px;
  max-width: 100%;
  min-height: 425px;
  background-image: url("../images/r5/mode_card_bg_slice.webp");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 120, 104, 0.2);
}

.opening-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.opening-method-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 16px 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.25s ease;
  backdrop-filter: blur(2px);
}

.opening-method-item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.opening-method-item__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  object-fit: contain;
}

.opening-method-item__body {
  display: flex;
  flex-direction: column;
}

.opening-method-item__title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.25;
}

.opening-method-item__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}


/* ===== 3. 子板块 2：智能控制系统（修正卡片尺寸与绿色圆球图标底座） ===== */
.highlight-block-2 {
  position: relative;
  width: 100%;
  min-height: 500px;
  background-image: url("../images/r5/block2_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  margin-bottom: 36px;
}

.highlight-block-2 .block-content {
  position: relative;
  width: 100%;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.block-header-right {
  text-align: right;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.block-header-right .block-title {
  font-size: 32px;
  font-weight: 700;
  color: #007868;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.block-header-right .block-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #007868;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.block-header-right .block-line {
  width: 50px;
  height: 3px;
  background-color: #007868;
  border-radius: 2px;
}

/* 浅绿高光半透明卡片容器（宽度 720px，透出左侧黑框推拉门实景背景）
   高度完全由内容驱动：3x3 网格实测约 330px，不再设 min-height 下限，
   避免容器撑高后底部空出大片留白 */
.system-control-card {
  position: relative;
  width: 720px;
  max-width: 100%;
  background-image: url("../images/r5/system_card_bg_slice.webp");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
  padding: 26px 24px;
  box-shadow: 0 16px 36px rgba(0, 120, 104, 0.14);
}

/* 3x3 网格：行高按内容自适应，行间距均分纵向空间 */
.system-control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 14px;
  width: 100%;
  align-items: start;
}

/* 单个功能卡片项 */
.system-control-item {
  background: transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.25s ease;
}

.system-control-item:hover {
  transform: translateY(-2px);
}

/* 使用本地素材作为绿色圆形图标底座 */
.system-control-item__icon-wrapper {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background-image: url("../images/r5/sys_icon_badge.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
}

.system-control-item__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.system-control-item__body {
  display: flex;
  flex-direction: column;
}

.system-control-item__title {
  font-size: 18px;
  font-weight: 700;
  color: #007868;
  margin-bottom: 4px;
  line-height: 1.25;
}

.system-control-item__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: #3a3a3a;
}


/* ===== 4. 子板块 3：智能音箱平台 ===== */
.highlight-block-3 {
  position: relative;
  width: 100%;
  min-height: 680px;
  background-image: url("../images/r5/block3_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.highlight-block-3 .block-content {
  position: relative;
  width: 100%;
  padding: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.block-3-left {
  max-width: 500px;
  flex-shrink: 0;
}

.block-3-desc {
  font-size: 18px;
  line-height: 1.85;
  color: #333333;
  margin-top: 16px;
}

/* 右侧图标生态区域 */
.block-3-right {
  position: relative;
  width: 750px;
  height: 500px;
  flex-shrink: 0;
}

/* 中心云蜗Logo */
.voice-center-logo {
  position: absolute;
  width: 240px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(0, 120, 104, 0.25));
  transition: transform 0.4s ease;
}

.voice-center-logo:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

/* 通用图标节点 */
.voice-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 3;
  transition: transform 0.3s ease;
  cursor: default;
  box-sizing: border-box;
  padding: 4px;
}

.voice-node:hover {
  transform: translateY(-4px) scale(1.06);
}

/* 底图图片（圆形背景） */
.voice-node__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
}

/* 品牌图标 */
.voice-node__icon {
  position: relative;
  z-index: 1;
  object-fit: contain;
  margin-bottom: 2px;
}

/* 文字标签（圆形卡片内部白色文字） */
.voice-node__label {
  position: relative;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
  white-space: nowrap;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.voice-node__label small {
  display: block;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.95;
}

/* 大圆节点（96px） */
.voice-node--lg {
  width: 96px;
  height: 96px;
}

.voice-node--lg .voice-node__icon {
  max-height: 30px;
  max-width: 58px;
}

/* 圆形节点内原 9~10px 白字在手机上几乎不可读，统一提到 12px 下限 */
.voice-node--lg .voice-node__label {
  font-size: 13px;
  line-height: 1.2;
}

.voice-node--lg .voice-node__label small {
  font-size: 12px;
  line-height: 1.2;
}

/* 小圆节点（72px） */
.voice-node--sm {
  width: 72px;
  height: 72px;
}

.voice-node--sm .voice-node__icon {
  max-height: 22px;
  max-width: 42px;
}

.voice-node--sm .voice-node__label {
  font-size: 12px;
  line-height: 1.2;
}

.voice-node--sm .voice-node__label small {
  font-size: 12px;
  line-height: 1.2;
}

/* ==========================================================================
   5. 响应式与移动端深度适配 (Responsive Adaptation)
   ========================================================================== */
@media (max-width: 1023px) {
  .highlights-section {
    padding-top: 50px;
  }

  .highlights-section .section-heading {
    margin-bottom: 30px;
  }

  .highlight-block-1,
  .highlight-block-2,
  .highlight-block-3 {
    min-height: auto;
    padding: 40px 0;
    margin-bottom: 40px;
  }

  /* 居中对齐排版 */
  .highlight-block-1 .block-content,
  .highlight-block-2 .block-content {
    align-items: center;
    text-align: center;
    padding: 20px 0;
  }

  .block-header-left,
  .block-header-right {
    align-items: center;
    text-align: center;
  }

  /* 桌面端已改为内容驱动高度，此处只需放开 min-height 让卡片自然收缩 */
  .opening-methods-card {
    width: 90%;
    max-width: 820px;
    min-height: 0;
    margin: 0 auto;
    padding: 20px;
  }

  .system-control-card {
    width: 90%;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 16px;
  }

  .highlight-block-3 .block-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 36px;
    padding: 30px 0;
  }

  .block-3-left {
    max-width: 100%;
    text-align: center;
  }

  .block-3-right {
    width: 100%;
    max-width: 560px;
    height: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .highlights-section .title {
    font-size: 28px;
  }

  .highlights-section .subtitle {
    font-size: 14px;
  }

  .highlights-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .highlights-arrow.hero-arrow--prev {
    left: 8px;
  }

  .highlights-arrow.hero-arrow--next {
    right: 8px;
  }

  .block-header-left .block-title,
  .block-header-right .block-title {
    font-size: 22px;
  }

  .opening-methods-card,
  .system-control-card {
    width: 94%;
    padding: 16px 12px;
    border-radius: 16px;
  }

  .opening-methods-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .system-control-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 6px;
  }

  .opening-method-item {
    padding: 8px;
    gap: 6px;
  }

  .opening-method-item__icon {
    width: 34px;
    height: 34px;
  }

  .opening-method-item__title {
    font-size: 15px;
  }

  .opening-method-item__desc {
    font-size: 12px;
    line-height: 1.45;
  }

  .system-control-item__icon-wrapper {
    width: 40px;
    height: 40px;
    padding: 6px;
  }

  .system-control-item__title {
    font-size: 14px;
  }

  .system-control-item__desc {
    font-size: 12px;
    line-height: 1.45;
  }

  .block-3-right {
    max-width: 100%;
    height: 340px;
  }

  .voice-center-logo {
    width: 150px;
  }

  .voice-node--lg {
    width: 70px;
    height: 70px;
  }

  .voice-node--lg .voice-node__icon {
    max-height: 22px;
    max-width: 44px;
  }

  .voice-node--lg .voice-node__label {
    font-size: 12px;
  }

  .voice-node--lg .voice-node__label small {
    font-size: 12px;
    line-height: 1.2;
  }

  .voice-node--sm {
    width: 54px;
    height: 54px;
  }

  .voice-node--sm .voice-node__icon {
    max-height: 16px;
    max-width: 32px;
  }

  .voice-node--sm .voice-node__label {
    font-size: 8.5px;
  }

  .voice-node--sm .voice-node__label small {
    font-size: 7.5px;
  }
}

@media (max-width: 480px) {
  .highlights-section .title {
    font-size: 24px;
  }

  .opening-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-control-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .system-control-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }

  .block-3-right {
    height: 290px;
  }

  .voice-center-logo {
    width: 115px;
  }

  .voice-node--lg {
    width: 58px;
    height: 58px;
  }

  .voice-node--sm {
    width: 45px;
    height: 45px;
  }
}

