/**
 * bt-curve.css
 * .bt 圆形弧形文字样式表
 * 用法：在页面中引入此样式表，配合 bt-curve.js 使用
 * 原理：每个字一个 span，position:absolute 定位到圆心，
 *       transform: rotate(角度) translate(-50%, -半径) 沿上半圆展开
 */

/* ====== 列表容器：横向弹性布局 ====== */
.main2 .news_list.clearfix {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 30px 20px;
  margin: 0;
}

/* 每个列表项 */
.main2 .news_list li.news {
  width: 340px;
}

/* 链接容器 */
.main2 .news_list .news_con {
  text-decoration: none;
  display: block;
  color: inherit;
}

.main2 .news_list .news_box {
  text-align: center;
}

/* 隐藏空的 news_title（如不需要可删除此规则）*/
.main2 .news_list .news_title {
  display: none;
}

/* ====== .bt 圆形文字核心样式 ====== */

/**
 * 文字容器 — 圆形定位上下文
 * font-size:0 隐藏原始文本节点间的空白字符
 */
.main2 .news_list .bt {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
  font-size: 0;
top:0;
}

/**
 * 装饰弧线 — 上半圆虚线
 * 用 border-radius:50% 画整圆，clip-path:inset(0 0 50% 0) 裁掉下半部分
 */
.main2 .news_list .bt::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130px;
  height: 130px;
  border: 1px dashed #378ADD;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.25;
  pointer-events: none;
  clip-path: inset(0 0 50% 0);
}

/**
 * 中心数字圆 — 通过 data-num 属性显示编号
 * data-num 由 JS 从父级 li 的 class（n1/n2/n3/n4）中提取并设置
 */
.main2 .news_list .bt::after {
  content: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #185FA5;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  transition: all 0.3s ease;
  z-index: 1;
}

/**
 * 逐字定位 — 核心原理
 *
 * left:50%; top:50%     → span 左上角在容器圆心
 * transform-origin:0 0  → 旋转轴心 = 圆心
 * transform: rotate(角度) translate(-50%, -半径)
 *   先 translate：水平居中 + 向上推到半径处
 *   后 rotate：绕圆心旋转到目标角度
 *
 * --angle 由 JS 逐字计算并设置
 */
.main2 .news_list li.news.n1 .bt{background:url(images/t1.png) no-repeat center;    background-size: contain;}
.main2 .news_list li.news.n2 .bt{background:url(images/t2.png) no-repeat center;    background-size: contain;}
.main2 .news_list li.news.n3 .bt{background:url(images/t3.png) no-repeat center;    background-size: contain;}
.main2 .news_list li.news.n4 .bt{background:url(images/t4.png) no-repeat center;    background-size: contain;}
/*.main2 .news_list li.news.n1 .bt .char{color:#1296db;}
.main2 .news_list li.news.n2 .bt .char{color:#7c508f;}
.main2 .news_list li.news.n3 .bt .char{color:#1c78d1;}
.main2 .news_list li.news.n4 .bt .char{color:#1296db;}*/


.main2 .news_list .bt .char {
  position: absolute;
  left: 50%;
  top: 65%;
  transform-origin: 0 0;
  transform: rotate(var(--angle, 0deg)) translate(-50%, -150px);  /* 65px = 文字弧形半径 */
  font-size: 28px;
  font-weight: 700;
  color: #b52c14;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.3s ease;
}

/* ====== 副标题 ====== */
.main2 .news_list .news_ftitle {
width:290px;font-size:22px;
  line-height: 1.5;
  margin-top: 8px;
  transition: color 0.3s;
}

/* ====== 悬浮交互效果 ====== */
.main2 .news_list li.news:hover .bt::after {
  background: #0C447C;
  transform: translate(-50%, -50%) scale(1.12);
}
.main2 .news_list li.news:hover .bt .char {
  color: #185FA5;
}
.main2 .news_list li.news:hover .news_ftitle {
  color: #0C447C;
}

/* ====== 可调参数速查 ======
 *
 * 需要调整效果时改这几处即可：
 *
 * | 参数              | 位置                    | 默认值  | 说明               |
 * |------------------|------------------------|--------|-------------------|
 * | 圆形尺寸           | .bt width/height       | 160px  | 整体容器大小          |
 * | 文字弧形半径        | .bt .char translate Y  | 65px   | 文字距圆心的距离       |
 * | 字号               | .bt .char font-size    | 16px   | 弧形文字大小         |
 * | 弧形最大跨度         | bt-curve.js maxSpan    | 150°   | 文字展开的最大角度     |
 * | 每字角度            | bt-curve.js anglePerChar| 24°   | 每字占用的角度       |
 * | 装饰弧线大小         | .bt::before width/height| 130px | 虚线弧的直径         |
 * | 中心圆大小           | .bt::after width/height| 46px   | 数字圆的直径         |
 */
