/* ==================== 首页 Hero Swiper 轮播 ==================== */
.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-swiper .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
}

.banner-bg {
  position: relative;
  inset: 0;
  z-index: 1;
}

.banner-bg img {
  width: 100%;
}

.banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.1) 100%); */
}

.banner-txt {
  position: absolute;
  z-index: 5; /* 提升层级，确保文字始终显示在轮播图片之上 */
  width: 100%;
  color: #fff;
  padding: 0 0 3rem;
  top:25%;
  opacity: 1; /* 文字常显：banner-txt 已移出 swiper，不再依赖 JS 添加 .is-visible */
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.banner-txt.is-visible,
.hero-swiper .swiper-slide-active .banner-txt {
  opacity: 1;
  transform: translateY(0);
}

.banner-label {
  font-size: 2.85rem;
  line-height: 1.0;
  font-weight: 600;
  margin: 0 0 5.0rem;
}

.banner-title {
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
}

.banner-desc {
  line-height: 1.0;
  font-size: 2.0rem;
  font-weight: 500;
  margin: 0 0 5.0rem;
}

.banner-extra {
  margin-bottom: 1.5rem;
}

.banner-extra p {
  font-size: 1.5rem;
  margin: 0;
}

.banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.banner-btns .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; 
  min-width: 15.625rem; 
  padding: 1.2rem 1.5rem;
  font-size: 1.25rem;
  border-radius: var(--hrd-radius);
  text-decoration: none;
  transition: transform var(--hrd-transition), box-shadow var(--hrd-transition), background var(--hrd-transition);
}

.banner-btns .btn:hover {
  transform: translateY(-0.125rem);
  text-decoration: none;
}

.banner-btns .btn-primary {
  color: #fff;
  background: var(--hrd-primary);
  border: 1px solid var(--hrd-primary);
}

.banner-btns .btn-primary:hover {
  background: var(--hrd-primary-dark);
  border-color: var(--hrd-primary-dark);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 91, 172, 0.25);
}

.banner-btns .btn-white {
  color: var(--hrd-text);
  background: var(--hrd-bg);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.banner-btns .btn-white:hover {
  color: var(--hrd-primary);
  background: #fff;
  border-color: #fff;
}

.banner-btns .btn .iconfont {
  font-size: 0.75rem;
  transition: transform var(--hrd-transition);
}

.banner-btns .btn:hover .iconfont {
  transform: translateX(0.1875rem);
}

/* Swiper 分页器 */
.hero-swiper .swiper-pagination {
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
}

.hero-swiper .swiper-pagination-bullet {
  width: 0.625rem;
  height: 0.625rem;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 0 0.375rem;
  transition: background var(--hrd-transition), transform var(--hrd-transition);
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #fff;
  transform: scale(1.25);
}

/* ==================== 首页公共组件 ==================== */
.hrd-section {
  position: relative;
  padding: 6rem 0;
}

.hrd-section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.hrd-section-title {
  font-size: 3rem;
  color: var(--hrd-text);
  margin-bottom: 0px;
}

.hrd-section-subtitle {
  font-size: 1.25rem;
  margin: 0;
}

.hrd-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; 
  margin-bottom: 3rem;
}

.hrd-tab-btn {
  position: relative;
  padding: 0px 3rem 1.0rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1.125rem;
  border-bottom: 0.25rem solid #dcdcdc;
  cursor: pointer;
  transition: color 0.25s ease;
}

.hrd-tab-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 0.25rem;
  background: #111;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.hrd-tab-btn.active {
  font-weight: 600;
}

.hrd-tab-btn.active::after {
  transform: scaleX(1);
}

.hrd-tab-content {
  position: relative;
}

.hrd-tab-panel {
  display: none;
}

.hrd-tab-panel.active {
  display: block;
  animation: hrd-fade-in 0.35s ease;
}

@keyframes hrd-fade-in {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

.hrd-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hrd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 3.0rem;
  border-radius: var(--hrd-radius-x);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.hrd-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.hrd-btn-blue {
  color: #fff;
  background: var(--ab-blue);
}

.hrd-btn-blue:hover {
  color: #fff;
  background: var(--ab-blue-deep);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 74, 141, 0.25);
}

.hrd-btn-red {
  color: #fff;
  background: var(--ab-red-btn);
}

.hrd-btn-red:hover {
  color: #fff;
  background: var(--ab-red-deep);
  box-shadow: 0 0.5rem 1.25rem rgba(211, 47, 47, 0.25);
}

/* ==================== 图片3：三大行业清罐误区 ==================== */


.hrd-mis-card {
  margin-bottom: 1.5rem;
}

.hrd-mis-title {
  font-size: 1.75rem;
  color: var(--hrd-text);
}

.hrd-mis-desc {
  opacity: 0.85;
  margin: 1.0rem 0;
}

.hrd-mis-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ab-blue);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s ease;
}

.hrd-mis-link:hover {
  color: #003a6e;
  text-decoration: none;
}

/* ==================== 图片4：三大行业定制均质解决方案 ==================== */
.hrd-solutions {
  background: #f8f8f8;
}
.hrd-solution-img {
  position: relative;
  border-radius: var(--hrd-radius);
  overflow: hidden;
}

.hrd-solution-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hrd-solution-info{
  padding-left: 3.0rem;
}
.hrd-solution-title {
  /* 流体字号：桌面 90px → 平板 768px 处 48px；<=767.98px 由移动端固定值覆盖为 1.5rem(21px) */
  font-size: clamp(1.625rem, 6.25vw, 5.625rem);
  line-height: 1.15;
  color: var(--hrd-text);
  margin: 0 0 1.75rem;
}
.hrd-solution-title span{ display: block;}
.hrd-solution-body {
  margin-bottom: 2.0rem;
}
/* ==================== 图片5：核心产品 ==================== */
.hrd-products {
  background: #fff;
}
.hrd-product-card {
  height: 100%;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: var(--hrd-radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hrd-product-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.08);
}

.hrd-product-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 13.75rem;
  padding: 1.5rem;
  background: #fff;
}

.hrd-product-img .hrd-product-pic {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hrd-product-logo {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  line-height: 0;
}

.hrd-product-logo img {
  display: block;
  width: auto;
  max-width: 7.5rem;
  max-height: 1.5rem;
  object-fit: contain;
}

.hrd-product-body {
  padding: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.hrd-product-name {
  font-size: 1.5rem;
  color: var(--hrd-text);
  margin: 0 0 0.75rem;
}

.hrd-product-desc {
  margin: 0 0 1rem;
  line-height: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hrd-product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ab-blue);
  text-decoration: none;
  transition: color 0.25s ease;
}


/* ==================== 图片6：全行业储罐技改落地实拍案例 ==================== */
.hrd-cases {
  background: #f7f8fa;
}

.hrd-case-panel,.hrd-product-wrap,.hrd-solution-wrap {
  position: relative;
  padding: 0 3.75rem;
}

.hrd-case-swiper {
  overflow: hidden;
}

.hrd-case-card {
  display: block;
  text-decoration: none;
}

.hrd-case-card:hover {
  text-decoration: none;
}

.hrd-case-img {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #e5e5e5;
  aspect-ratio: 4 / 3;
}

.hrd-case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hrd-case-card:hover .hrd-case-img img {
  transform: scale(1.04);
}
.hrd-case-title {
  margin: 1.0rem 0 0;
}
.hrd-case-nav,.hrd-product-nav,.hrd-solution-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.hrd-case-prev,
.hrd-case-next,
.hrd-product-prev,
.hrd-product-next,
.hrd-solution-prev,
.hrd-solution-next {
  pointer-events: auto;
  width: 3.5rem;
  height: 3.5rem;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}
.hrd-case-prev,
.hrd-product-prev,
.hrd-solution-prev{
  background: rgba(0, 0, 0, 0.18);
}
.hrd-case-next,
.hrd-product-next ,
.hrd-solution-next{
  background: #004a8d;
}
.hrd-case-prev:hover, .hrd-product-prev:hover,.hrd-solution-prev:hover{
  background: rgba(0, 0, 0, 0.3);
}
.hrd-case-next:hover,.hrd-product-next:hover,.hrd-solution-next:hover{
  background: #003a6e;
  transform: scale(1.05);
}
.hrd-case-prev i,
.hrd-case-next i ,
.hrd-product-prev i,
.hrd-product-next i ,
.hrd-solution-prev i,
.hrd-solution-next i {
  font-size: 1.85rem;
  font-weight: 100;
}

/* ==================== 图片7：战略合作头部企业 ==================== */
.hrd-partner-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 auto 3rem;
}

.hrd-partner-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform .25s ease;
}

.hrd-partner-item:hover {
  border-color: #ddd;
  transform: translateY(-0.125rem);
  box-shadow: 0 0.375rem 1.125rem rgba(0, 0, 0, 0.06);
}

.hrd-partner-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hrd-partner-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ==================== 图片8：关于华瑞达流体 ==================== */
.hrd-about-txt {
  padding-right: 5rem;
}
.hrd-about-small,
.hrd-about-big {
  display: block; 
  /* 流体字号：桌面 90px → 平板 768px 处 48px；<=767.98px 由移动端固定值覆盖为 2rem(28px) */
  font-size: clamp(2.375rem, 6.25vw, 5.65rem);
  line-height: 1.15;
  color: var(--hrd-text);
}
.hrd-about-subtitle {
  font-size: 1.75rem;
  margin: 0 0 1.0rem;
}
.hrd-about-body {  
  margin-bottom: 3.5rem;
}
.hrd-about-body p {
  margin: 0 0 0.75rem;
}
.hrd-about-img-col {
  position: relative;
}

.hrd-about-img {
  border-radius: var(--hrd-radius);
  overflow: hidden;
}

.hrd-about-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==================== 图片9：最新资讯 ==================== */
.hrd-news {
  padding-bottom: 6.875rem;
}

.hrd-news-col {
  margin-bottom: 1.5rem;
}

.hrd-news-card {
  display: block;
  transition: 0.25s ease;
}

.hrd-news-card:hover {
  transform: translateY(-0.125rem);
}
.hrd-news-title {  
  font-size: 1.5rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--hrd-text-color);
  margin: 0 0 0.75rem;
  transition: color 0.25s ease;
}
.hrd-news-desc {
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hrd-news-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.5rem;
}
.hrd-news-meta .hrd-news-sep {
  width: 1px;
  height: 1.375rem;
  background: var(--hrd-text-light);
}

.hrd-news-meta time {
  color:var(--ab-red-btn);
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 1023.98px) {
  .hrd-case-panel,
  .hrd-product-wrap {
    padding: 0 3.125rem;
  }
 .hrd-case-prev, .hrd-case-next, .hrd-product-prev, .hrd-product-next, .hrd-solution-prev, .hrd-solution-next {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
  }
  /* 战略合作：非大屏改为两行（5 + 5） */
  .hrd-partner-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1023.98px) {
  .hrd-section {
    padding: 3.0rem 0;
  }

  .hrd-section-title {
    font-size: 1.875rem;
  }

  .hrd-section-subtitle {
    font-size: 0.9375rem;
  }
  .hrd-solution-wrap {
    padding: 0 3.25rem;
  }

  .hrd-solution-prev,
  .hrd-solution-next {
    width: 3rem;
    height: 3rem;
    font-size: 1.375rem;
  }

  /* 平板以下左右堆叠，取消信息区左内边距 */
  .hrd-solution-img{
    margin-bottom: 1rem;
  }
  .hrd-solution-info {
    padding-left: 15px;
  }

  .hrd-about-title {
    margin-bottom: 1rem;
  }

  .hrd-about-txt {
    padding-right: 0.9375rem;
    margin-bottom: 2.5rem;
  }

  /* 轮播箭头：平板保持两侧绝对定位 + 垂直居中（不再下移居中） */
  .hrd-case-panel {
    padding: 0 2.875rem;
  }
  .hrd-case-prev,
  .hrd-case-next,
  .hrd-product-prev,
  .hrd-product-next {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.125rem;
  }
}

/* ==================== 首页 Hero · 平板端适配 ====================
   修复 767→768 断点突变：桌面大标题（5.5rem≈75px）在 768~1023 平板上过大，
   改为随视口平滑过渡的中间字号，桌面端（≥1024）仍用原值不受影响。
   ============================================================ */
@media (max-width: 1023.98px) {
  .banner-label {
    font-size: 1.25rem;
  }
  .banner-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    line-height: 1.25;
  }
  .banner-desc {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
  }
  .banner-extra p {
    font-size: 0.9375rem;
  }
  .banner-btns .btn {
    min-width: 12.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 1.0625rem;
  }
}

@media (max-width: 767.98px) {
  .hrd-section-head {
    margin-bottom: 1.5rem;
  }
  .hrd-section-title {
    font-size: 1.5rem;
  }

  .hrd-tabs {
    margin-bottom: 2.0rem;
  }

  .hrd-tab-btn {
    font-size: 0.9375rem;
    padding: 0.75rem 0.625rem;
  }

  /* 卡片/条目标题压小，避免根字号放大后过大 */
  .hrd-mis-title {
    font-size: 1.125rem;
  }

  .hrd-product-name {
    font-size: 1.0625rem;
  }

  .hrd-solution-wrap {
    padding: 0 2.5rem;
  }

  .hrd-solution-prev,
  .hrd-solution-next {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  .hrd-solution-title {
    font-size: 1.5rem;
  }

  .hrd-product-img {
    height: 11.25rem;
  }
  .hrd-partner-item {
    width: 100%;
    height: auto;
    padding: 0.75rem;
  }
  .hrd-about-small,
  .hrd-about-big {
    font-size: 2rem;
  }
  .hrd-about-subtitle {
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
  }
  .hrd-news-title {
    font-size: 1rem;
  }
  .hrd-about-body{margin-bottom: 1.5rem;}

  /* 资讯 meta（1.5rem 会被根字号放大，压回正常小字） */
  .hrd-news-meta {
    font-size: 0.875rem;
  }

  .hrd-news-meta .hrd-news-sep {
    height: 1rem;
  }
}

@media (max-width: 767.98px) {
  /* 双按钮保持一行并排（不堆叠），收紧内边距适配窄屏 */
  .hrd-btns {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .hrd-btns .hrd-btn {
    flex: 1 1 auto;
    width: auto;
    padding: 0.625rem 0.5rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  /* 底部合作 CTA：一行并排、文字与上方按钮统一 */
  .hrd-partner-actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .hrd-partner-actions .hrd-btn {
    flex: 1 1 auto;
    width: auto;
    padding: 0.625rem 0.5rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .hrd-partner-grid {
    gap: 0.75rem;
    /* 手机端一行 3 个，避免 5 列挤在一起 */
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hrd-mis-card {
    padding-right: 0;
  }

  /* 解决方案切换箭头：保持两侧垂直居中（不居中堆到底部） */
  .hrd-solution-wrap,.hrd-product-wrap,.hrd-case-panel {
    padding: 0 0rem;
  }
  .hrd-solution-nav,.hrd-product-nav,.hrd-case-nav{
    left: -13px;
    right: -13px;
  }
  .hrd-solution-prev,
  .hrd-solution-next {
    width: 2.375rem;
    height: 2.375rem;
    font-size: 1.125rem;
  }
}

/* ==================== 首页 Hero 轮播 · 移动端适配 ====================
   桌面端 .banner-bg 为普通文档流（图片 16:9 撑起高度），
   移动端图片高度不足、叠加绝对定位文字会溢出，故改用固定高度 + 背景铺满。
   ============================================================ */
@media (max-width: 767.98px) {
  .banner {
    min-height: 30rem;
  }

  /* 背景铺满：保持 .banner-bg 在文档流内撑高，img 用 object-fit 覆盖 */
  .banner-bg {
    height: 30rem;
  }

  .banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* 移动端渐变加深，保证文字可读 */
  .banner-bg::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.25) 100%);
  }

  .banner-txt {
    padding: 1.5rem 0 2.25rem;
  }

  .banner-title {
    font-size: 1.875rem;
    line-height: 1.25;
  }

  .banner-desc {
    font-size: 0.9375rem;
    margin: 0 0 1.25rem;
  }

  .banner-btns {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .banner-btns .btn {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 0.625rem 0.5rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .hero-swiper .swiper-pagination {
    bottom: 0.75rem;
  }
  
}
