/* 办公地点组件样式文件 */
/* Office Locations Component Styles */

/* 桌面端办公地点样式 */
.offical_address {
  width: 1200px;
  margin: 120px auto 0;
  padding-bottom: 120px;
}

/* About页面特殊样式兼容 */
.congra_about_box .offical_address {
  margin: 0 auto;
  padding: 120px 0;
}

.offical_address .offical_address_title {
  font-size: 40px;
  font-weight: bold;
  color: #121212;
  line-height: 30px;
  text-align: center;
  margin-bottom: 47px;
}

.offical_address .address_list {
  display: flex;
}

.offical_address .address_list .address_item {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.offical_address .address_list .address_item .address_pic {
  height: 300px;
  width: 105px;
  background: url("../images/about/address1.png") no-repeat;
  background-position-x: -66px;
  background-size: cover;
  transition: all 0.5s;
}

.offical_address .address_list .address_item .address_pic1 {
  background-image: url("../images/about/address1-1.png");
}

.offical_address .address_list .address_item .address_pic2 {
  background-image: url("../images/about/address2.png");
}

.offical_address .address_list .address_item .address_pic3 {
  background-image: url("../images/about/address3.png");
}

.offical_address .address_list .address_item .address_pic4 {
  background-image: url("../images/about/address4.png");
}

.offical_address .address_list .address_item .address_pic5 {
  background-image: url("../images/about/address5.png");
}

.offical_address .address_list .address_item .act_address_pic {
  width: 310px;
  height: 380px;
  background-position-x: 0;
}

.offical_address .address_list .address_item .default_content {
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 300px;
  transition: all 0.5s;
  background: var(--theme-primary-color);
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  line-height: 26px;
  padding: 0 18px;
}

.offical_address
  .address_list
  .address_item
  .default_content
  .add_content_line {
  width: 30px;
  height: 1px;
  background: #ffffff;
  margin: 40px 0;
}

.offical_address .address_list .address_item .default_content .add_content_des {
  position: absolute;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  line-height: 30px;
  opacity: 0;
  transition: opacity 0.5s;
}

.offical_address
  .address_list
  .address_item
  .default_content
  .address_content_show {
  position: relative;
  opacity: 1;
}

.offical_address .address_list .address_item .default_content_hidden {
  flex-direction: column;
  align-items: flex-start;
  width: 230px;
  height: 380px;
}

.offical_address .address_list .act_address_item {
  width: 540px;
  height: 380px;
}

/* 桌面端默认样式 - 隐藏移动端轮播，显示桌面端布局 */
.mobile-address-carousel {
  display: none;
}

.desktop-address-layout {
  display: flex;
}

/* 移动端办公地点样式 */
@media (max-width: 768px) {
  .offical_address {
    width: 100%;
    padding: 1rem 0 !important;
    margin: 0 !important;
  }

  /* 桌面端布局在移动端隐藏 */
  .desktop-address-layout {
    display: none !important;
  }

  /* 移动端轮播显示 */
  .mobile-address-carousel {
    display: block !important;
    margin: 0 -4vw;
    padding: 0 4vw;
  }

  /* 移动端办公地点标题样式 */
  .offical_address .offical_address_title {
    font-size: 6vw !important;
    margin-bottom: 0vw !important;
    color: #121212;
    text-align: center;
  }

  /* 移动端轮播项样式 */
  .mobile-address-item {
    width: 100% !important;
    height: auto !important;
    padding: 0.5rem !important;
  }

  /* 移动端办公地点图片 */
  .mobile-address-pic {
    width: 100%;
    height: 50vw !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 1.07vw 3.2vw rgba(0, 0, 0, 0.15) !important;
    /* 默认背景图 - 广州总部 */
    background-image: url("../images/about/address1.png") !important;
    /* 添加备用背景色，确保即使图片加载失败也有显示 */
    background-color: #f0f0f0 !important;
  }

  /* 移动端各地址图片 */
  .mobile-address-pic.address_pic1 {
    background-image: url("../images/about/address1-1.png") !important;
  }

  .mobile-address-pic.address_pic2 {
    background-image: url("../images/about/address2.png") !important;
  }

  .mobile-address-pic.address_pic3 {
    background-image: url("../images/about/address3.png") !important;
  }

  .mobile-address-pic.address_pic4 {
    background-image: url("../images/about/address4.png") !important;
  }

  .mobile-address-pic.address_pic5 {
    background-image: url("../images/about/address5.png") !important;
  }

  /* 移动端激活状态的地址图片 */
  .mobile-address-pic.act_address_pic {
    /* 继承原有的图片，但调整大小和阴影 */
    box-shadow: 0 1.6vw 4.8vw rgba(0, 0, 0, 0.25) !important;
  }

  /* 移动端内容区域 */
  .mobile-address-content {
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--theme-primary-color) !important;
    color: #fff !important;
    font-size: 4.5vw !important;
    font-weight: 500 !important;
    padding: 4vw !important;
    text-align: center !important;
  }

  /* 移动端地址详情 */
  .mobile-address-content .add_content_des {
    position: relative !important;
    opacity: 1 !important;
    font-size: 3.5vw !important;
    line-height: 1.6 !important;
    margin-top: 2vw !important;
    text-align: center !important;
  }

  /* 移动端分割线 */
  .mobile-address-content .add_content_line {
    display: none !important;
  }

  /* 轮播控制按钮 */
  #addressCarousel .carousel-control-prev,
  #addressCarousel .carousel-control-next {
    width: 10vw !important;
    height: 10vw !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #addressCarousel .carousel-control-prev {
    left: 2vw !important;
  }

  #addressCarousel .carousel-control-next {
    right: 2vw !important;
  }

  #addressCarousel .carousel-control-prev-icon,
  #addressCarousel .carousel-control-next-icon {
    width: 6vw !important;
    height: 6vw !important;
    background: none !important;
  }

  #addressCarousel .carousel-control-prev-icon img,
  #addressCarousel .carousel-control-next-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* 轮播指示器 */
  #addressCarousel .carousel-indicators {
    bottom: -0.1rem !important;
    margin-bottom: 0 !important;
  }

  #addressCarousel .carousel-indicators li {
    width: 2vw !important;
    height: 2vw !important;
    border-radius: 50% !important;
    margin: 0 1vw !important;
    background-color: rgba(17, 64, 132, 0.3) !important;
    border: none !important;
  }

  #addressCarousel .carousel-indicators .active {
    background-color: var(--theme-primary-color) !important;
  }

  /* 移动端轮播过渡效果 */
  #addressCarousel .carousel-item {
    transition: transform 0.6s ease-in-out !important;
  }
}
