/* =========================================================
   首页「解决方案」环形区 —— 节点数量自适应 + 可读性修正
   原模板按 3 个节点设计（顶 / 左 / 右），栏目只剩 2 个时
   右侧永久空缺。改为：2 个即左右对称，3 个时第三个回顶部。
   ========================================================= */

/* ---------- 桌面端：按序号定位 ---------- */

/* 第 1 个：左侧 */
body.index .pictrue-2 ul.p2nodes li.p2n1 {
  left: -70px;
  right: auto;
  top: 50%;
  margin: -80px 0 0 0;
}
body.index .pictrue-2 ul.p2nodes li.p2n1:before {
  transform: rotate(-15deg);
  -webkit-transform: rotate(-15deg);
}

/* 第 2 个：右侧（与左侧镜像对称） */
body.index .pictrue-2 ul.p2nodes li.p2n2 {
  left: auto;
  right: -70px;
  top: 50%;
  margin: -80px 0 0 0;
}
body.index .pictrue-2 ul.p2nodes li.p2n2:before {
  transform: rotate(15deg);
  -webkit-transform: rotate(15deg);
}

/* 第 3 个（将来新增分类时）：回到顶部 */
body.index .pictrue-2 ul.p2nodes li.p2n3 {
  left: 50%;
  right: auto;
  top: -80px;
  margin: 0 0 0 -84px;
}
body.index .pictrue-2 ul.p2nodes li.p2n3:before {
  transform: none;
  -webkit-transform: none;
}

/* ---------- 圆心文字：可读性修正 ---------- */

/* 英文副标题原为 opacity .16，几乎不可见 */
body.index .pictrue-2 .textbox .biaoti .en {
  opacity: .46;
  font-size: 13px;
  letter-spacing: 3px;
  margin: 8px 0 12px;
}

/* 描述文字固定 height:72px 会被截断；同时收窄以避开两侧节点 */
body.index .pictrue-2 .textbox p {
  height: auto;
  max-width: 286px;
  opacity: .7;
  font-size: 15px;
  line-height: 25px;
  margin: 16px auto 0;
}

/* 不论文案多长都严格居中于圆心 */
body.index .pictrue-2 .textbox {
  margin-top: 0;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
}

/* 标题下的分隔线原为 opacity .16，几乎不可见 */
body.index .pictrue-2 .textbox .biaoti b {
  opacity: .3;
}

/* 六边形栏目名原为 24px，会顶出贴图边缘 */
body.index .pictrue-2 ul.p2nodes li a {
  font-size: 20px;
  letter-spacing: .5px;
  padding-top: 56px;
}

/* ---------- 移动端：改为两列按钮，避免固定宽度溢出 ---------- */

@media (max-width: 991px) {
  body.index .pictrue-2 {
    width: auto;
    max-width: 420px;
    height: auto;
    padding: 0;
    margin: 0 auto;
  }
  body.index .pictrue-2 .textbox {
    position: static;
    width: auto;
    margin: 0 0 26px;
    padding: 0 10px;
    text-align: center;
    /* 桌面端的圆心居中变换在静态流里要清掉 */
    transform: none;
    -webkit-transform: none;
    top: auto;
    left: auto;
  }
  body.index .pictrue-2 .textbox .biaoti,
  body.index .pictrue-2 .textbox .biaoti h3 {
    text-align: center;
  }
  body.index .pictrue-2 .textbox p {
    max-width: 100%;
    font-size: 14px;
    line-height: 23px;
  }
  body.index .pictrue-2 .textbox .biaoti h3 {
    font-size: 24px;
    line-height: 30px;
  }
  body.index .pictrue-2 ul.p2nodes {
    position: static;
    width: auto;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  /* clearfix 的伪元素在 grid 下会变成网格项，必须清掉 */
  body.index .pictrue-2 ul.p2nodes:before,
  body.index .pictrue-2 ul.p2nodes:after {
    content: none;
    display: none;
  }
  body.index .pictrue-2 ul.p2nodes li {
    position: static;
    width: auto;
    height: auto;
    margin: 0 !important;
  }
  /* 六边形贴图在窄屏上会互相压叠，改用卡片 */
  body.index .pictrue-2 ul.p2nodes li:before,
  body.index .pictrue-2 ul.p2nodes li:after {
    display: none;
  }
  body.index .pictrue-2 ul.p2nodes li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 64px;
    padding: 14px 8px;
    font-size: 15px;
    line-height: 22px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
  }
}
