
body.darking .fm-topic-image-wrap .fm-topic-image,
html.darking .fm-topic-image-wrap .fm-topic-image {
  filter: brightness(0.85) contrast(1.1);
  transition: filter 0.3s;
}

body.darking .fm-topic-image-wrap:before,
html.darking .fm-topic-image-wrap:before {
  background: rgba(20, 22, 26, 0.55);
  transition: background 0.3s;
}
body.darking .fm-intro-bgimg,
html.darking .fm-intro-bgimg {
  filter: brightness(0.85) contrast(1.1);
  transition: filter 0.3s;
}
html.darking .fm-intro-bgimg:before,
body.darking .fm-intro-bgimg:before {
  background: rgba(20, 22, 26, 0.55);
  transition: background 0.3s;
}
/* 深色主题处理图片亮度 */

/* 定义动画效果 */
.animate-on-scroll {
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform, opacity;
}
/* 进场时加 active 触发动画 */
.animate-on-scroll.active {
  opacity: 1;
  transform: none;
  animation-duration: 0.8s;
  animation-fill-mode: both;
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.fadeInLeft {
  transform: translateX(-40px);
}
.fadeInLeft.active {
  animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.fadeInRight {
  transform: translateX(40px);
}
.fadeInRight.active {
  animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fadeInUp {
  transform: translateY(40px); 
}
.fadeInUp.active {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 0.68, 0.57, 1) both;
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fadeInDown {
  transform: translateY(-40px);
}
.fadeInDown.active {
  animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* index title :bar */
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  gap: 24px;
}

.section-title-left {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}

.section-title h2 {
  font-size: 30px;
  font-weight: 500;
  color: var(--tb--main);
}
.section-title p {
  font-size: 16px;
  color: var(--tb-base);
  margin-bottom: 0;
}
.fm-btn.section-title-right {
  margin-left: 24px;
  white-space: nowrap;
}

/* 分割线样式 */
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--tb--main);
}
/* index button */
.fm-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  color: var(--tb--main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0s ease;
}

.fm-btn:hover {
  background-color: transparent;
  color: #1e73be;
  transform: translateX(4px);
}

.fm-btn i {
  margin-left: 8px;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.fm-btn:hover i {
  transform: translateX(8px);
}

/* 移动端保持左右结构 */
@media (max-width: 700px) {
  .section-title {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }
  .section-title-left {
    flex: 1 1 0;
    flex-direction: column;
    align-items: start;
  }
  .fm-btn.section-title-right {
    align-self: flex-end;
    margin-left: 8px;
  }
}

/* index title bar end */

/* index about */
.fm-company-intro {
  position: relative;
  width: 100%;
  height: 400px;
  /* margin-top: -20px; */
  margin-bottom: 60px;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: visible;
}
.fm-intro-bgimg {
  width: 70%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: absolute;
  left: 0;
  /* right: 0; */
  top: 0;
  bottom: 0;
}
.fm-intro-bgimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.fm-intro-floatcard {
  position: absolute;
  /* left: 5vw; */
  right: 5vw;
  bottom: -60px;
  width: 600px;
  max-width: 92vw;
  height: 400px;
  max-height: 90%;
  /* background: rgba(244,244,244,0.92); */
  background: var(--tb--abbg);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.1);
  padding: 44px 46px 32px 42px;
  z-index: 2;
  color: var(--tb--base);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.fm-intro-floatcard h2 {
  color: var(--tb--main);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.fm-intro-floatcard .subtitle {
  color: var(--tb--base);
  opacity: 0.7;
  font-size: 1.08rem;
  margin-bottom: 18px;
}
.fm-intro-floatcard .desc {
  color: var(--tb--base);
  font-size: 1.13rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-indent: 2em;
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .fm-intro-floatcard {
    padding: 24px 18px 20px 18px;
  }
}
@media (max-width: 900px) {
  .fm-intro-floatcard {
    padding: 16px 8px 14px 8px;
  }
}
@media (max-width: 768px) {
  .fm-company-intro {
    height: 340px;
    min-height: 200px;
    margin-top: 0;
    margin-bottom: 0px;
    display: block;
    position: relative;
    padding: 20px 0;
  }
  .fm-intro-bgimg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  .fm-intro-bgimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82);
  }
  .fm-intro-floatcard {
    position: relative;
    width: 92vw;
    max-width: 98vw;
    min-width: 0;
    height: 100%;
    max-height: none;
    margin: 0 auto;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    background: var(--tb--abbg);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 5vw 18px 5vw;
    text-align: center;
  }
  .fm-intro-floatcard h2 {
    font-size: 1.15rem;
    margin-bottom: 7px;
  }
  .fm-intro-floatcard .subtitle {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  .fm-intro-floatcard .desc {
    font-size: 0.92rem;
    margin-top: 7px;
    text-indent: 1.5em;
  }
}

/* index about */

/* index topic swiper */
/* 1. 容器布局 */
.fm-topic-swiper-wrap {
  width: 100%;
  margin: 0 auto;
  padding-top: 30px;
}

.fm-topic-nav-swiper {
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.fm-topic-nav-swiper .swiper-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.fm-topic-nav-swiper .swiper-slide {
  width: auto !important;
  flex: 0 0 auto;
  /* margin: 0 8px; */
}

.fm-topic-nav-item {
  display: flex;
  align-items: center;
  width: auto;
}

.fm-topic-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  max-width: 360px;
  width: auto;
  min-height: 100px;
  max-height: 220px;
  height: 120px;
  padding: 0 36px;
  font-size: 22px;
  background: var(--tb--tint);
  margin: 0 10px;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  color: var(--tb--base);
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  white-space: nowrap; /* 单行显示，如需自动换行可注释 */
}
.fm-topic-nav-btn.active,
.fm-topic-nav-btn:hover {
  /* background: #222; */
  color: var(--tb--main);
  border: 1px dashed var(--tb--main);
  box-shadow: 0 4px 24px rgba(30, 32, 36, 0.12);
}
.fm-topic-nav-btn .fm-topic-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 14px;
  flex-shrink: 0;
}
.fm-topic-nav-btn .fm-topic-nav-icon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.fm-topic-nav-btn .fm-topic-title {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.1em;
  /* 根据需要调整字体大小 */
}

/* 2. 内容区样式 */
.fm-topic-content-list {
  width: 100%;
}
.fm-topic-content-item {
  display: block;
}
.fm-topic-content-item.hide {
  display: none;
}
.fm-topic-image-wrap {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: none;
  /* overflow: hidden; */
  text-align: center;
}
.fm-topic-image-wrap .fm-topic-image {
  width: 100%;
  max-width: 1920px;
  height: 100%;
  max-height: 560px;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  display: block;
  margin: 0 auto;
  object-position: center;
  object-fit: cover;
}
/* .fm-topic-image-wrap:hover .fm-topic-image,
.fm-topic-image-wrap:focus .fm-topic-image {
    transform: scale(1.05);
} */
.fm-topic-image-wrap:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 32, 36, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
  pointer-events: none;
}
.fm-topic-image-wrap:hover:before,
.fm-topic-image-wrap:focus:before {
  opacity: 1;
}
.fm-topic-view-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: #00000060;
  color: var(--tb--base);
  padding: 10px 32px;
  font-size: 18px;
  border: none;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  font-weight: bold;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  text-decoration: none;
}
.fm-topic-image-wrap:hover .fm-topic-view-btn,
.fm-topic-image-wrap:focus .fm-topic-view-btn {
  opacity: 1;
  pointer-events: auto;
}

/* 3. 响应式 */
@media (max-width: 900px) {
  .fm-topic-swiper-wrap {
    /* padding: 16px 0; */
    max-width: 98vw;
  }
  .fm-topic-nav-btn {
    padding: 0 16px;
    font-size: 17px;
    max-width: 220px;
    max-height: 140px;
    height: 80px;
    min-height: 60px;
  }
  .fm-topic-nav-btn .fm-topic-nav-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
  }
}
@media (max-width: 600px) {
  .fm-topic-swiper-wrap {
    /* padding: 8px 0; */
    max-width: 100vw;
  }
  .fm-topic-nav-swiper .swiper-wrapper {
    justify-content: flex-start; /* 关键：移动端取消居中，允许滑动 */
  }
  .fm-topic-nav-swiper {
    margin-bottom: 12px;
  }
  .fm-topic-nav-btn {
    padding: 0 8px;
    font-size: 16px;
    max-width: 160px;
    max-height: 100px;
    height: 50px;
    /* min-height: 40px; */
  }
  .fm-topic-nav-btn .fm-topic-nav-icon {
    display: none;
  }
  .fm-topic-nav-btn .fm-topic-title {
    font-size: 15px;
    margin: 0;
  }
  .fm-topic-content-item {
    height: 100%;
  }
  .fm-topic-content-list {
    padding: 0;
  }
  .fm-topic-image-wrap {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    left: 0;
    margin-left: 0;
    margin-right: 0;
    position: relative;
  }
  .fm-topic-image-wrap .fm-topic-image {
    width: 100%;
    /* max-width: 100%; */
    height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
  }
}
/* 专题区样式结束 */
/* 首页优势展示 */
.fm-advantage-wraper {
  padding: 30px 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
}

.fm-advantage-wraper .fm-advantage-title {
  position: relative;
  margin: 0;
  font-size: 26px;
  text-align: center;
  color: var(--tb-base);
  letter-spacing: 2px;
  transition: all 0.3s;
}

.fm-advantage-wraper .fm-advantage-title span {
  color: var(--tb--main);
}

.fm-advantage-wraper .fm-advantage-desc {
  margin: 8px 0 0;
  font-weight: normal;
  font-size: 18px;
  text-align: center;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.fm-advantage-wraper .tb-c-w.with-title {
  margin-top: 60px;
}

.fm-advantage .tb-c-w {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.fm-advantage .fm-advantage-item {
  position: relative;
  flex: 1 1 calc(25% - 48px);
  max-width: calc(25% - 48px);
  padding: 0;
  margin-right: 0;
  text-align: center;
}

.fm-advantage .tb-m-icon:hover::before {
  transform: scale(1);
}

.fm-advantage .tb-m-icon:hover i {
  color: #fff;
}

.fm-advantage .tb-m-icon::before {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -40px;
  content: "";
  width: 80px;
  height: 80px;
  background: var(--tb--main);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s;
}

.fm-advantage i {
  border-radius: 50%;
  transition: all 0.3s;
}

.fm-advantage i {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 80px;
  font-size: 50px;
  line-height: 80px;
  color: var(--tb--main);
}

.fm-advantage i:after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: var(--tb--main);
  opacity: 0.08;
  z-index: -1;
  transition: transform 0.5s;
  border-radius: 50%;
}

.fm-advantage i + .tb-m-i-title,
.fm-advantage i + .tb-m-i-desc {
  margin-top: 32px;
}

.fm-advantage .tb-m-i-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--tb-base);
}

.fm-advantage .tb-m-i-title + .tb-m-i-desc {
  margin-top: 8px;
}

.fm-advantage .tb-m-i-desc {
  font-size: 15px;
}

.tb-clamp.clamp-4 {
  -webkit-line-clamp: 4;
}

.tb-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  overflow-wrap: break-word;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .fm-advantage .fm-advantage-item {
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
  }

  .fm-advantage-wraper .tb-hide-3 .fm-advantage-item:last-child {
    display: none;
  }
}

@media (max-width: 768px) {
  .fm-advantage .fm-advantage-item {
    flex: 1 1 calc(33.33% - 16px);
    max-width: calc(33.33% - 16px);
  }

  .fm-advantage-wraper .fm-advantage-title {
    font-size: 22px;
  }

  .fm-advantage-wraper .fm-advantage-desc {
    font-size: 16px;
  }

  .fm-advantage-wraper .tb-c-w.with-title {
    margin-top: 40px;
  }
}

@media (max-width: 640px) {
  .fm-advantage .fm-advantage-item {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    margin-bottom: 20px;
  }

  .fm-advantage-wraper .tb-c-w.with-title {
    margin-top: 24px;
  }

  .fm-advantage-wraper .fm-advantage-title {
    font-size: 22px;
  }

  .fm-advantage-wraper .fm-advantage-desc {
    margin-top: 6px;
    font-size: 14px;
  }

  .fm-advantage-wraper .tb-hide-3 .fm-advantage-item:last-child {
    display: block;
  }
}
/* 4宫格动画延迟设置 */
.fm-advantage .fm-advantage-item.animate-on-scroll:nth-child(1) {
  transition-delay: 0.3s;
}
.fm-advantage .fm-advantage-item.animate-on-scroll:nth-child(2) {
  transition-delay: 0.6s;
}
.fm-advantage .fm-advantage-item.animate-on-scroll:nth-child(3) {
  transition-delay: 1s;
}
.fm-advantage .fm-advantage-item.animate-on-scroll:nth-child(4) {
  transition-delay: 1.4s;
}

/* 首页优势展示区域 End */

/* 首页工艺区域样式 */
.process-section {
  padding: 30px 0;
  /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
  background-color: var(--tb-bdbg);
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.process-header {
  text-align: center;
  margin-bottom: 30px;
}

.process-header h2 {
  font-size: 36px;
  color: #1e73be;
  margin-bottom: 15px;
}

.process-header p {
  font-size: 18px;
  color: #7f8c8d;
}

/* Swiper容器 */
.process-swiper-container {
  position: relative;
  padding: 0 60px;
}

/* 幻灯片样式 */
.process-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  align-items: stretch;
}
.process-swiper .swiper-slide {
  transition: all 0.8s ease;
  opacity: 0;
}

.process-swiper .swiper-slide-active {
  opacity: 1;
}
.process-image {
  width: 50%;
  height: 520px;
  position: relative;
  overflow: hidden;
}

.process-image img {
  /*width: 100%;*/
  height: 100%;
  object-fit: cover;
}

.process-content {
  width: 50%;
  padding: 85px 7% 0;
  background-color: var(--tb--tint);
  position: relative;
}

.process-content h3 {
  font-size: 28px;
  color: #1e73be;
  margin-bottom: 10px;
}

.process-content h5 {
  font-size: 16px;
  color: #7f8c8d;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.process-divider {
  height: 2px;
  width: 60px;
  background: linear-gradient(to right, #1e73be, transparent);
  margin: 20px 0;
}

.process-content p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin: 20px 0;
}

.process-icon {
  position: absolute;
  top: 40px;
  right: -80px;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.process-pagination {
  margin-top: 10px;
  position: relative;
  z-index: 10;
}

.process-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
  margin: 0 8px;
}

.process-pagination .swiper-pagination-bullet-active {
  background: #1e73be;
}

/* swiper 导航按钮 */
.process-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
}

.process-prev,
.process-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  position: absolute;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.process-prev {
  left: 0;
}

.process-next {
  right: 0;
}

.process-prev:hover,
.process-next:hover {
  background: #1e73be;
}

.process-prev::after,
.process-next::after {
  content: "";
  width: 15px;
  height: 15px;
  border-left: 3px solid #1e73be;
  border-bottom: 3px solid #1e73be;
  transform: rotate(45deg);
}

.process-next::after {
  transform: rotate(-135deg);
}

.process-prev:hover::after,
.process-next:hover::after {
  border-color: white;
}

@media (max-width: 992px) {
  .swiper-slide {
    /*flex-direction: column;*/
  }

  .process-image {
    min-height: 300px;
  }

  .process-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .process-swiper-container {
    padding: 0 30px;
  }
  .process-image {
    width: 100%;
    height: 240px;
  }
  .process-content {
    width: 100%;
    padding: 30px 15px 60px;
  }
  .process-header h2 {
    font-size: 28px;
  }

  .process-content h3 {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .process-swiper-container {
    padding: 0 15px;
  }

  .process-prev,
  .process-next {
    width: 40px;
    height: 40px;
  }

  .process-prev::after,
  .process-next::after {
    width: 12px;
    height: 12px;
  }
}
/* 首页工艺区域 End */
/* 项目案例 */
.fm-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 30px;
  width: 100%;
  padding: 0 10px;
}

.fm-project-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 1/1;
  min-width: 0;
}

.fm-project-item .fm-project-image {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  /* object-fit: cover; */
  display: block;
}
.fm-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* 消除图片底部间隙 */
}
.fm-project-item:hover .fm-project-image {
  transform: scale(1.05);
}

.fm-project-item .fm-project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.fm-project-item:hover .fm-project-overlay {
  opacity: 1; /* hover时显示详情层 */
}

.fm-project-title h3 {
  margin: 0;
  font-size: 1.3rem; /* 增大字体 */
  color: #fff;
}

.fm-project-detail span {
  display: inline-block;
  margin-top: 15px; /* 增加间距 */
  padding: 8px 20px; /* 增大按钮 */
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  transition: background 0.3s ease;
  font-size: 1rem;
}

.fm-project-item:hover .fm-project-detail span {
  background: rgba(255, 255, 255, 0.2);
}

/* 响应式调整 - 更新断点 */
@media (min-width: 1024px) {
  .fm-project-grid {
    grid-template-columns: repeat(
      auto-fill,
      minmax(300px, 1fr)
    ); /* PC端显示3个 */
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .fm-project-grid {
    grid-template-columns: repeat(2, 1fr); /* 平板端显示2个 */
    gap: 5px;
  }
}

@media (max-width: 767px) {
  /* .fm-project-grid {
    grid-template-columns: 2fr;
    gap: 5px;
  }
  .fm-project-item {
    margin: 0 10px;
  } */
}

/* 首页项目案例 End */

/* 新闻联系区样式 */
.news-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
}
/* 联系我（侧边/复用）*/
.contact-widget {
  flex: 0 0 350px;
  background: var(--tb--tint);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.contact-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--tb--main);
}
.contact-header h1 {
  margin: 0;
  font-size: 24px;
  color: var(--tb--main);
}
.contact-header p {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--light-text);
}
.contact-list {
  padding: 20px;
}
.contact-item {
  display: flex;
  /* align-items:flex-start; */
  align-items: center;
  margin-bottom: 20px;
}
.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(42, 92, 170, 0.1);
  color: var(--tb--main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 18px;
}
.contact-info {
  flex: 1;
}
.contact-icon i {
  display: block; /* 关闭 inline 默认基线对齐 */
  line-height: 1; /* 清除多余行高 */
  font-size: 18px; /* 确保大小 */
}
.contact-info h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
}
.contact-info p {
  margin: 0;
  font-size: 14px;
  color: var(--light-text);
  line-height: 1.5;
}
.contact-info a {
  color: var(--tb--main);
  text-decoration: none;
  transition: color 0.3s;
}
.contact-info a:hover {
  color: #1a4a8a;
  text-decoration: underline;
}
/* 社交二维码弹出 */
.social-media {
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}
.social-media h3 {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-color);
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.social-icon {
  position: relative;
  width: 36px;
  height: 36px;
  background: rgba(42, 92, 170, 0.1);
  color: var(--tb--main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.social-icon:hover {
  transform: translateY(-3px);
  background: var(--tb--main);
  color: #fff;
}
.qrcode-popup {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 130px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  transition: transform 0.3s;
  z-index: 10;
  text-align: center;
}
.social-icon:hover .qrcode-popup {
  transform: translateX(-50%) scale(1);
}
.qrcode-popup img {
  width: 100px;
  height: 100px;
  margin-bottom: 5px;
}
.qrcode-popup p {
  margin: 0;
  font-size: 12px;
  color: #333;
}

/* 新闻列表 */
.news-widget {
  flex: 1;
}
.fm-news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
/* 新闻项 */
.fm-news-item {
  display: flex;
  background: var(--tb--tint);
  overflow: hidden;
  flex-wrap: wrap;
  transition: transform 0.3s, box-shadow 0.3s;
  /* margin: 0 15px; */
  padding: 10px;
  align-items: center;
}
.fm-news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.fm-news-thumbnail {
  flex: 0 0 30%;
  overflow: hidden;
}
.fm-news-thumbnail img {
  width: 100%;
  height: 100%;
  max-height: 110px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
}
.fm-news-item:hover .fm-news-thumbnail img {
  transform: scale(1.05);
}
.fm-news-content {
  flex: 1;
  padding: 10px;
}
.fm-news-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--tb--main);
}
.fm-news-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.fm-news-content h3 a:hover {
  color: #1a4a8a;
}
.fm-news-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--light-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  overflow: hidden;
  overflow-wrap: break-word;
}

/* 响应式 */
@media (max-width: 768px) {
  .news-section {
    flex-direction: column;
    align-items: center;
  }
  .contact-widget {
    width: 100%;
    max-width: 350px;
    margin-bottom: 20px;
  }
  .news-widget {
    width: 100%;
    max-width: 600px;
  }
  .fm-news-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .fm-news-thumbnail img {
    /* max-height: 82px; */
    height: 82px;
  }
  .fm-news-item {
    margin: 0 10px;
  }
}
/*首页新闻联系区 End*/
/*页面*/
/*公共*/
/* 顶部Banner+Slogan叠加 */
.brand-banner-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  margin-top: -30px;
  /* margin-bottom: 40px; */
  overflow: hidden;
  background: var(--tb--dark);
}
.brand-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7) grayscale(0.05);
  transition: filter 0.3s ease;
}
.brand-banner-wrap:hover .brand-banner {
  filter: brightness(0.8) grayscale(0);
}
.brand-slogan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: inherit;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0,
    rgba(0, 0, 0, 0.4) 100%
  );
  padding: 0 20px;
  text-align: center;
}
.brand-slogan h2 {
  font-size: 2.8rem;
  margin: 0 0 16px;
  line-height: 1.2;
}
.brand-slogan p {
  font-size: 1.25rem;
  margin: 0;
  opacity: 0.9;
  max-width: 800px;
}

@media (max-width: 900px) {
  .brand-banner-wrap,
  .brand-banner {
    height: 220px;
  }
  .brand-slogan h2 {
    font-size: 1.1rem;
  }
}
/*页面slogan End*/
/* 顶部横幅 - 使用伪元素实现全屏背景 */
.top-banner {
  position: relative;
  padding: 10px 0;
  background-color: var(--tb--dark);
  overflow: hidden;
}

.top-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background-color: var(--tb--dark);
  z-index: -1;
}

.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  color: var(--tb--white);
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.welcome-text {
  font-size: 14px;
  font-weight: bold;
  color: white;
}

.contact-phone {
  font-size: 16px;
  font-weight: bold;
  color: white;
}
/* 关于页面样式 */
/* —— 关于页面大标题 —— */
.aboutus-section {
  padding: 36px 0 0 0;
  background: var(--tb--bdbg);
}
.aboutus-section .section-header {
  text-align: center;
  margin-bottom: 24px;
}
.aboutus-section .section-header h2 {
  font-size: 2.1rem;
  color: var(--tb--main);
  font-weight: 700;
  letter-spacing: 1.1px;
}
.aboutus-section .section-header p {
  color: var(--tb--base);
  font-size: 1.1rem;
  opacity: 0.8;
}

/* 公司简介/介绍区 */
.aboutus-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
  justify-content: center;
  background: var(--tb--tint);
  border-radius: 0;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.05);
  padding: 36px 24px;
  margin-bottom: 36px;
}
.aboutus-intro-text {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 680px;
  padding-right: 28px;
}
.aboutus-intro-text h3 {
  font-size: 1.6rem;
  color: var(--tb--main);
  font-weight: 600;
  margin-bottom: 10px;
}
.aboutus-intro-text h4 {
  font-size: 1.1rem;
  color: var(--tb--base);
  margin-bottom: 20px;
}
.aboutus-intro-text p {
  font-size: 1.06rem;
  color: var(--tb--base);
  margin-bottom: 14px;
  line-height: 1.8;
  text-indent: 2em;
}
.aboutus-intro-img {
  flex: 1 1 260px;
  min-width: 180px;
  max-width: 460px;
  align-self: stretch;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 8px 28px rgba(30, 30, 30, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aboutus-intro-img img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.6s;
}
.aboutus-intro-img img:hover {
  transform: scale(1.04);
}

@media (max-width: 800px) {
  .aboutus-intro {
    flex-direction: column;
    padding: 20px 0;
    gap: 24px;
    margin: 0 10px;
  }
  .aboutus-intro-text {
    padding-right: 0;
    max-width: 95vw;
  }
  .aboutus-intro-img {
    max-width: 99vw;
  }
}
/*企业文化*/
.certificates {
  /*margin-top: 20px;*/
}
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.section-padding {
  padding: 0 0 20px 0;
}
.certificate-item {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 5px;
  background-color: var(--tb--tint);
}

.certificate-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.certificate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate-overlay i {
  color: #fff;
  font-size: 30px;
}
.certificate-item:hover {
  border: 1px dashed var(--tb--main);
  padding: 0;
}
.certificate-item:hover .certificate-overlay {
  opacity: 1;
}

.certificate-item:hover img {
  transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .section-padding {
    padding: 30px 0;
  }

  .section-header h2 {
    font-size: 20px;
  }
}

/* 关于页面 culture 企业文化*/
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.col-about-culture {
  padding: 10px 0;
}

.col-page-title h2 {
  font-size: 24px;
}
.text-center {
  text-align: center;
}
.col-culture {
  margin-top: 30px;
  background-color: var(--tb--tint);
}

.col-culture .content .text h3 {
  font-size: 18px;
}

.col-culture .content .text p {
  font-size: 14px;
}
.col-culture .content .padding {
  /* height: 372px; */
  padding: 20px;
  background: var(--tb-bdbg);
}
.col-culture .content .padding .con {
  width: 50%;
  height: 132px;
  font-size: 16px;
  line-height: 1.5em;
  padding: 28px 20px;
  overflow: hidden;
}
.col-culture .content .paddings {
  width: 50%;
  background: var(--tb-bdbg);
}
.col-culture .content .paddings .con {
  height: 172px;
  font-size: 16px;
  line-height: 1.5em;
  position: relative;
}
.col-culture .content .padding .con span {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  color: #bd0019;
}
.col-culture .content .padding .con span {
  font-size: 24px;
}
.col-culture .content .padding .con {
  font-size: 16px;
}

.col-culture .content .paddings .con {
  font-size: 16px;
}

.col-culture .content .paddings .con p {
  width: 81.25%;
  max-height: 80%;
  overflow: hidden;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.col-culture .content .paddings .con span {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  color: #bd0019;
}
.col-culture .content .paddings .con span {
  font-size: 24px;
}

.col-culture .content {
  width: 50%;
  position: relative;
  min-height: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
}
.pull-left {
  float: left;
}

.pic {
  position: relative;
  overflow: hidden;
}
.pic:after {
  content: "";
  display: block;
}
.col-culture .content .pic1 {
  height: 372px;
}

.col-culture .content .text {
  width: 100%;
  padding: 50px 44px;
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
}
.col-culture .content .text h3 {
  font-size: 30px;
  font-weight: bold;
}
.col-culture .content .text p {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.3;
}
.col-culture .content .pic2 {
  height: 200px;
}
.col-culture .content .pic3 {
  height: 200px;
}

@media (max-width: 767px) {
  .col-page-title h2 {
    font-size: 18px;
  }
  .col-culture .content {
    width: 100%;
  }

  .col-culture .content .text {
    padding: 7% 6%;
  }
  .col-about-culture {
    padding: 10px 0 55px;
  }
}
/*关于页面 End*/

/*产品中心页面*/
/* 横向Tabs导航 */
.topic-tabs-wrap {
  background: var(--tb--tint);
  border-bottom: 1px solid var(--tb--line);
  margin-bottom: 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topic-tabs {
  display: flex;
  gap: 2.8rem;
  overflow-x: auto;
  /*padding: 0 20px;*/
  scrollbar-width: none;
}
.topic-tabs::-webkit-scrollbar {
  display: none;
}
.tab-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1.18rem;
  color: var(--tb--base);
  padding: 16px 0 14px;
  border-bottom: 3px solid transparent;
  margin-right: 0;
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}
.tab-header:hover {
  color: var(--tb--main);
}
.tab-header.active {
  color: var(--tb--main);
  border-bottom: 3px solid var(--tb--main);
}
.tab-header .tab-icon {
  width: 26px;
  height: 26px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tab-header .tab-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.tab-header .tab-icon i {
  font-size: 1.3em;
  color: #aaa;
}

.tab-title {
  font-size: 1.08rem;
  font-weight: 500;
}

/* Tab内容区 */
.topic-content-wrap {
  width: 100%;
}
.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  margin: 0 10px;
}
.tab-content.active {
  display: block;
  opacity: 1;
  transform: none;
}
.tab-content.fade-in {
  display: block;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.3s ease forwards;
}
.tab-content.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.topic-img {
  margin-bottom: 1.2em;
}
.topic-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: grayscale(0.04) contrast(1.07);
}
.topic-desc {
  margin-bottom: 1.2em;
  color: var(--tb--gray);
  font-size: 1.05rem;
}

/* 产品列表（现代无圆角卡片） */
.topic-post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.topic-post-list .excerpt {
  background: var(--tb--tint);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin: 0;
  /* padding: 0; */
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--tb--line);
  overflow: hidden;
  position: relative;
}
.topic-post-list .excerpt:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 36px rgba(0, 123, 255, 0.15);
  border-color: var(--tb--main);
  z-index: 1;
}
.topic-post-list .excerpt .focus {
  display: block;
  overflow: hidden;
}
.topic-post-list .excerpt .focus img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  filter: grayscale(0.1) contrast(1.05);
  will-change: transform;
}
.topic-post-list .excerpt:hover .focus img {
  filter: grayscale(0) contrast(1.1) brightness(1.03);
  transform: scale(1.08);
}
.topic-post-list .excerpt header {
  padding: 16px 20px 12px;
  border-top: 1px solid var(--tb--line);
  transition: border-color 0.3s ease;
}
.topic-post-list .excerpt:hover header {
  border-color: transparent;
}
.topic-post-list .excerpt header h2 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--tb--base);
}
.topic-post-list .excerpt .note {
  color: var(--tb--base);
  font-size: 0.95rem;
  min-height: 2.4em;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .topic-post-list .excerpt .note {
    display: block;
  }
}
/* 更多按钮 */
.topic-more-link {
  margin: 25px 0;
  text-align: center;
}

/* 空内容 */
.no-post {
  padding: 2.2em 0 1.6em;
  color: #aaa;
  text-align: center;
  font-size: 1.1em;
}

@media (max-width: 1024px) {
  .brand-slogan h2 {
    font-size: 2.2rem;
  }
  .brand-slogan p {
    font-size: 1.1rem;
  }
  .topic-post-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
  .topic-post-list .excerpt .focus img {
    height: 120px;
  }
  .topic-tabs {
    gap: 1.8rem;
  }
}
@media (max-width: 768px) {
  .brand-banner-wrap {
    height: 220px;
  }
  .brand-slogan h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  .brand-slogan p {
    font-size: 1rem;
  }
  .topic-tabs-wrap {
    top: 70px;
  }
  .topic-tabs {
    gap: 1rem;
    padding: 0 12px;
  }
  .tab-header {
    font-size: 1rem;
    padding: 12px 0 10px;
  }
  .topic-post-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .topic-post-list .excerpt .focus img {
    height: 140px;
  }
  .topic-post-list .excerpt:hover .focus img {
    transform: scale(1.03);
  }
}
