/* 室内定位功能模块 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.uwb-section {
  width: 100%;
  min-height: 975px;
  background: url("../images/uwbshinei/bj.png") no-repeat center center;
  background-size: cover;
  padding: 86px 24px 72px;
}

.uwb-section__inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* 标题区 */
.uwb-header {
  text-align: center;
  margin-bottom: 200px;
}

.uwb-header__title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  color: #000135;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  padding-top: 50px;
}

.uwb-header__subtitle {
  margin-top: 14px;
  font-size: clamp(13px, 1.4vw, 16px);
  color: #3d5a7a;
  line-height: 1.7;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* 五台手机横向排列 */
.uwb-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(12px, 2.5vw, 36px);
}

/* 单卡：248×501 原图比例 */
.phone-card {
  position: relative;
  width: clamp(140px, 13vw, 248px);
  aspect-ratio: 248 / 501;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.35s ease, filter 0.35s ease;
  z-index: 1;
}

.phone-card__frame {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

/* 黑体字下方的空白描述区（与 PNG 内留白对齐） */
.phone-card__blank {
  position: absolute;
  top: 62%;
  left: 11%;
  right: 11%;
  bottom: 7.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
  pointer-events: none;
}

.phone-card__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 120, 255, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border-radius: inherit;
  z-index: 1;
}

.phone-card__detail {
  position: relative;
  z-index: 2;
  font-size: clamp(9px, 0.85vw, 12px);
  line-height: 1.55;
  color: #fff;
  text-align: center;
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 40, 100, 0.3);
  word-break: break-word;
}

/* 鼠标划过：手机放大 + 空白区蓝色提示块 + 文字 */
.phone-card:hover {
  transform: scale(1.06);
  z-index: 10;
}

.phone-card:hover .phone-card__mask,
.phone-card:hover .phone-card__detail {
  opacity: 1;
  visibility: visible;
}

.phone-card:hover .phone-card__detail {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .uwb-section {
    padding: 40px 16px 56px;
  }

  .uwb-header {
    margin-bottom: 32px;
  }

  .uwb-phones {
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .uwb-phones {
    flex-direction: column;
    align-items: center;
  }

  .phone-card {
    width: min(220px, 72vw);
  }
}
