/**
 * 复刻站点覆盖样式
 * 原站 AmazeUI 通过 [data-am-widget='tabs'] 属性选择器为 Tabs 组件布局，
 * 复刻版由 Vue 接管 Tabs 行为、不再输出该属性，此处用类选择器补齐相同样式
 */
.am-tabs {
  margin: 0px;
}
.am-tabs .am-tabs-nav {
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}
.am-tabs .am-tabs-nav li {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.am-tabs .am-tabs-nav a {
  display: block;
  word-wrap: normal;
  /* for IE */
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* 新闻/案例详情富文本正文居中 */
.solution-inform-content {
  text-align: center;
}
.solution-inform-content p,
.solution-inform-content img {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* 覆盖 Tailwind v4 preflight 把所有 img 设为 display:block
 * 原站富文本图片以 inline 渲染，靠父元素 text-align:center 居中；
 * 改 block 后图片即使父元素居中也会左对齐。此处恢复 inline 让居中样式生效 */
.rich_content img,
.solution-inform-content img {
  display: inline !important;
}
.rich_content img {
  max-width: 100%;
  height: auto;
}

/* ============ SEO 标题语义化视觉对齐 ============
 * 为提升 SEO 与可访问性，将原站 <span>/<div>/<h3> 升格为语义化 <h1>/<h2>。
 * 此处重置浏览器/AmazeUI 对标题的默认 margin、font-weight、font-size，
 * 保证视觉与原站零变化（本文件在 style.css 之后加载，优先级最高）。 */

/* 内页横幅主标题（SwToppic）：原 span -> h1 */
.toppic-title h1.toppic-title-span {
  margin: 0;
  font-weight: inherit;
}

/* 各页板块标题（part-title）：原 span -> h2 */
.part-title h2.part-title-span {
  margin: 0;
  font-weight: inherit;
}

/* 首页 banner 叠加的可见 H1：绝对定位居中，半透明白字 + 阴影保证任意底图可读 */
.rollpic {
  position: relative;
}
.home-banner-h1 {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 90%;
  max-width: 900px;
  color: #fff;
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
  pointer-events: none;
}

/* 联系页公司名：原 div(inline style) -> h2，复刻原边框与字号 */
.contact-company-name {
  margin: 0 0 20px;
  border-bottom: 1px solid #aaaaaa;
  font-size: 25px;
  font-weight: inherit;
}

/* 新闻侧栏标题：原 div.hot-title -> h2，补齐 h2 默认的 margin-top/font */
h2.hot-title {
  margin: 0 0 10px;
  font-size: inherit;
  font-weight: inherit;
}

/* 案例/服务详情主标题：原 h3 -> h2，复刻 .product-show-title h3 视觉 */
.product-show-title h2 {
  margin: 0;
  font-size: 25px;
  font-weight: bold;
}

/* 新闻详情主标题：原 span -> h2，复刻 .words-title span 视觉 */
.words-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: inherit;
}
