/* ============================================================
   产品圆形图标 —— hover 悬浮名称卡片 + 手机端名称常显
   作用范围：.icons a.pro-ico （markets / markets_blank / products_blank）
   说明：不改动原有 img 尺寸与间距，桌面端排版保持原样
   ============================================================ */

/* ---------- 桌面端：图标本体 ---------- */
.icons a.pro-ico {
  display: inline-block;
  position: relative;
  line-height: 0;
  outline: none;
}

.icons a.pro-ico img {
  transition: opacity .25s ease, transform .25s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.icons a.pro-ico:hover img,
.icons a.pro-ico:focus-visible img {
  opacity: 1;
  transform: translateY(-3px);
}

/* 手机端常显的名称，桌面端隐藏 */
.icons a.pro-ico .pro-name {
  display: none;
}

/* ---------- 桌面端：悬浮卡片（fixed 单实例，由 pro-tip.js 定位） ---------- */
.pro-tip-layer {
  position: fixed;
  z-index: 10050;
  left: 0;
  top: 0;
  box-sizing: border-box;
  max-width: 280px;
  padding: 9px 13px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .07);
  box-shadow: 0 10px 28px rgba(16, 24, 40, .16), 0 2px 8px rgba(16, 24, 40, .08);
  color: #1f2430;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .1px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}

.pro-tip-layer.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* 指向图标的小三角 */
.pro-tip-layer::after {
  content: "";
  position: absolute;
  left: var(--arrow-x, 50%);
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-right: 1px solid rgba(16, 24, 40, .07);
  border-bottom: 1px solid rgba(16, 24, 40, .07);
  transform: translateX(-50%) rotate(45deg);
}

.pro-tip-layer.is-below::after {
  bottom: auto;
  top: -5px;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(16, 24, 40, .07);
  border-top: 1px solid rgba(16, 24, 40, .07);
}

/* ---------- 手机端：三列网格 + 名称常显 ---------- */
@media (max-width: 767px) {
  .room-box .content .bottom-specs .icons,
  .news-box .icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 12px;
    width: 100%;
    align-items: flex-start;
  }

  .room-box .content .bottom-specs .icons a.pro-ico,
  .news-box .icons a.pro-ico {
    display: flex;
    /* 2 列：3 列时单卡只有 80px 宽，产品名要挤成 3~4 行、10~11px，手机上既看不清也难点 */
    flex: 0 0 calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
    flex-direction: column;
    align-items: center;
    gap: 7px;
    line-height: 1.3;
    text-decoration: none;
  }

  .room-box .content .bottom-specs .icons a.pro-ico img,
  .news-box .icons a.pro-ico img {
    margin-right: 0;
    max-width: 52px;
    width: 52px;
    height: auto;
  }

  .icons a.pro-ico .pro-name {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    /* 固定三行高度，保证每行图标基线一致，不会因名称长短参差 */
    min-height: 50px;
    font-size: 12.5px;
    line-height: 1.35;
    color: #5a6270;
    text-align: center;
    word-break: break-word;
  }

  .icons a.pro-ico:hover img,
  .icons a.pro-ico:focus-visible img {
    transform: none;
  }
}
