﻿.mobile_business {
  padding-top: 60px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

/* 淡入动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 从顶部滑入动画 */
@keyframes slideInFromTop {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 从底部滑入动画 */
@keyframes slideInFromBottom {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 从左侧滑入动画 */
@keyframes slideInFromLeft {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 缩放动画 */
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 旋转并缩放动画 */
@keyframes rotateScaleIn {
  from { transform: rotate(-5deg) scale(0.9); opacity: 0; }
  to { transform: rotate(0) scale(1); opacity: 1; }
}

/* 移动端标题图标+文字样式 */
.mobile_title-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  opacity: 0;
  animation: slideInFromTop 0.6s ease-out forwards;
  animation-delay: 0.4s;
}

.mobile_section-title h3 {
  display: inline-block;
  position: relative;
  font-size: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.mobile_section-title h3:before {
  content: '';
  background: url(../img/common/class-title.png) no-repeat center;
  width: 100%;
  height: 20px;
  position: absolute;
  left: 0;
  bottom: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s ease-out;
}

.mobile_section-title h3:hover:before {
  transform: scaleX(1);
}

.mobile_section-title h3 span {
  position: relative;
  z-index: 1;
  padding: 0 10px;
}

.mobile_section-title p {
  color: #999;
  text-transform: uppercase;
  padding-left: 0px;
  font-size: 12px;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
  animation-delay: 0.6s;
}

.mobile_more-link {
  text-align: right;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
  animation-delay: 0.8s;
}

.mobile_more-link a {
  color: var(--primary-color);
  font-size: 14px;
  transition: all 0.3s ease;
}

.mobile_more-link a:hover {
  transform: translateX(5px);
}

.mobile_section-title .mobile_more-link {
  position: relative;
  height: 60px;
  line-height: 60px;
  right: 20px;
  margin-top: 10px;
  float: right;
  bottom: 0;
}

.mobile_section-title .mobile_more-link a {
  font-size: 16px;
  display: flex;
  align-items: center;
  color: #b91b22;
}

.mobile_section-title .mobile_more-link a:after {
  content: '>';
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.mobile_section-title .mobile_more-link a:hover:after {
  transform: translateX(3px);
}

.mobile_title-item {
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  animation: slideInFromBottom 0.5s ease-out forwards;
}



.mobile_title-icon { 
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
  filter: brightness(0.7) contrast(1.2);
padding: 6px;
  border-radius: 50%;
  border: 1px solid #dedede;

}

.mobile_title-icon:hover {

}

.mobile_title-item.active .mobile_title-icon { 
  filter: none;
  filter: invert(31%) sepia(93%) saturate(7471%) hue-rotate(356deg) brightness(87%) contrast(116%);
}

.mobile_title-text {
  font-size: 12px;
  color: #333;
  transition: color 0.3s ease;
}

.mobile_title-item.active .mobile_title-text {
  color: #b91b22;
  font-weight: bold;
}

/* 移动端选项卡样式 */
.mobile-business-tabs {
  display: flex;
  overflow-x: auto;
  margin-bottom: 20px;
  padding: 10px 0;
  opacity: 0;
  animation: slideInFromLeft 0.7s ease-out forwards;
  animation-delay: 0.2s;
}

.mobile-tab-btn {
  padding: 8px 15px;
  background: #f5f5f5;
  border: none;
  border-radius: 5px;
  margin-right: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-tab-btn:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s ease;
}

.mobile-tab-btn:hover:before {
  width: 100%;
}

.mobile-tab-btn.active {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.mobile-business-content { 
  margin-top: 20px;
  opacity: 0;
  animation: fadeIn 0.7s ease-out forwards;
  animation-delay: 0.4s;
}

.mobile-tab-content { 
  display: none;
  animation: scaleIn 0.1s ease-out;
}

.mobile-tab-content.active { 
  display: block;
}

/* 移动端标题图片和文字容器 */
.mobile_slogan-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  opacity: 0;
  animation: scaleIn 0.8s ease-out forwards;
  animation-delay: 0.6s;
  height: 40px;
}

.mobile_slogan-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.5s ease;
}

.mobile_slogan-container:hover .mobile_slogan-img {
  transform: scale(1.03);
}

.mobile_slogan-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 100%;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
  animation-delay: 0.8s;
}

.mobile_slogan-text h3 {
  color: #333;
  margin-bottom: 5px;
  text-align: center;
  /*font-weight: normal;
  transform: translateY(10px);*/
  animation: slideInFromTop 0.5s ease-out forwards;
  animation-delay: 2s;
  opacity: 0;
}

/* 每个业务项的基础样式 */
.mobile_business-item {
  width: calc(100% - 20px);
  position: relative;
  overflow: hidden;
  margin: 0 10px 20px;
  height: 220px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
 /*  opacity: 0;
  animation: rotateScaleIn 0.6s ease-out forwards; */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* 为业务项设置错开的加载动画 */
.mobile_business-item:nth-child(1) { animation-delay: 0.1s; }
.mobile_business-item:nth-child(2) { animation-delay: 0.1s; }
.mobile_business-item:nth-child(3) { animation-delay: 0.1s; }
.mobile_business-item:nth-child(4) { animation-delay: 0.1s; }

.mobile_business-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 移动端业务项图片样式已迁移至mobile.css */
.mobile_business-item img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.mobile_business-item:hover img {
  transform: scale(1.05);
}

/* 移动端业务区块 - 默认隐藏，仅在移动端显示 */
/* 默认：非移动端样式 */
.mobile_business {
  display: none;padding-left: 15px;
    padding-right: 15px;
}

.business {
  display: block;
}

/* 移动端（手机 + 平板等触摸设备）样式 */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .mobile_business {
    display: block;
  }
  .business {
    display: none;
  }
}

.mobile_business-txt { 
  top: 90px; 
  position: absolute; 
  margin: 20px; 
  text-indent: 2em;
  color: #fff;
  z-index: 19;
  transform: translateY(20px);
  opacity: 0;
  animation: slideInFromBottom 0.6s ease-out forwards;
  animation-delay: 0.3s;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important; /* 去掉前面的缩进 */
    display: flex !important;
    justify-content: center !important; /* 垂直方向: 居中内容 */
    align-items: center !important;     /* 水平方向: 居中内容 */
}
.mobile_business-txt-cell {
    text-align: center !important;
}

.mobile_business-txt-cell p {
    margin: 0 0 12px 0 !important;
    padding-left: 10px;
    padding-right: 10px;
}

.mobile_business-txt-cell a {
    margin: 0 auto !important;
}
/* 为每个业务项的文本设置不同的延迟 */
.mobile_business-item:nth-child(1) .mobile_business-txt { animation-delay: .1s; }
.mobile_business-item:nth-child(2) .mobile_business-txt { animation-delay: 2.3s; }
.mobile_business-item:nth-child(3) .mobile_business-txt { animation-delay: 2.5s; }
.mobile_business-item:nth-child(4) .mobile_business-txt { animation-delay: 2.7s; }

.mobile_business-txt a { 
  display: block; 
  font-size: 16px; 
  color: #fff; 
  width: 118px; 
  height: 38px;  
  line-height: 38px;  
  border: 1px solid #fff;
  margin: 10% auto;  
  transition: all 0.5s;
  text-align: center;
  text-indent: 0;
  position: relative;
  overflow: hidden;
}

.mobile_business-txt a:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.6s ease;
}

.mobile_business-txt a:hover:before {
  left: 100%;
}

.mobile_business-txt a:hover { 
  background-color: #ff3535; 
  color: #fffafa;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 53, 53, 0.4);
}
.mobile_more-link{display:none}