body {
  margin: 0;
  padding: 0;
  background: #f4f6f7;
  font-family: "Microsoft YaHei", 'Segoe UI', Arial, sans-serif;
}

.page-bg-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 97px 0 120px;
}

.container-main {
  display: flex;
  width: 1440px;
  height: 900px;
  margin: 0 auto;
  background: url('/assets/imgs/chat-bg.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 0 0;
  border-radius: 16px;
  overflow: hidden;
}

.sidebar-panel {
  width: 520px;
  background: none;
  padding: 24px 9px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* background: rgba(107, 140, 157, 0.2); */
}

.search-box-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 10px #0001;
  border: 1.5px solid #e1e8ec;
  height: 44px;
  padding: 0 17px;
  margin-right: 15px;
}

.search-box-bar input {
  border: none;
  outline: none;
  background: none;
  flex: 1;
  font-size: 17px;
  font-family: inherit;
  color: #15516a;
}

.search-icon-img {
  width: 22px;
  height: 22px;
  margin-left: 8px;
  cursor: pointer;
  object-fit: contain;
  opacity: 0.7;
}

.panel-title {
  font-size: 18px;
  color: rgba(0, 0, 0, 1);
  font-weight: 700;
}

.center-card-list {
  flex: 1;
  overflow-y: auto;
  margin-top: 0;
  padding-right: 9px;
}

.center-card-list::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}

.center-card-list::-webkit-scrollbar-thumb {
  background: rgba(0, 61, 92, 1);
  border-radius: 6px;
}

.center-card-list::-webkit-scrollbar-track {
  background: transparent;
  margin: 9px 0 9px 0;
}

.center-card {
  background: #fff;
  border-radius: 20px;
  border: 2px solid rgba(2, 115, 128, 1);
  box-shadow: 0 2px 10px #51a9ca0A;
  margin-bottom: 16px;
  padding: 24px;
  transition: box-shadow .17s, border-color .16s;
  position: relative;
  display: flex;
}

.center-card:hover {
  box-shadow: 0 6px 30px #51a9ca40;
  border-color: #51a9ca;
}

.center-card-body {
  flex: 1;
  margin-left: 0;
  display: flex;
  flex-direction: column;
}

.center-card-title {
  font-weight: 600;
  font-size: 24px;
  color: rgba(0, 0, 0, 1);
  margin-bottom: 12px;
}

.tab-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.tab-label {
  padding: 3px 8px;
  font-size: 12px;
  background: rgba(2, 115, 128, 1);
  color: rgba(255, 255, 255, 1);
  border-radius: 4px;
  font-weight: 600;
}

/* 地址组 */
.multi-address-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.multi-address-icon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 9px;
  min-width: 22px;
  margin-top: 2px;
}

.multi-address-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.95;
  margin-top: 2px;
}

.multi-address-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.multi-address-row {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 0px;
}

.multi-address-text {
  flex: 1;
  font-size: 16px;
  color: rgba(117, 117, 117, 1);
  font-weight: 400;
}

.nav-icon-btn {
  margin-left: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity .23s;
}

.nav-icon-img:hover {
  opacity: 1;
}

/* 联系方式 */
.center-card-contact,
.center-card-email {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.contact-icon-img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  object-fit: contain;
  vertical-align: middle;
  opacity: 0.85;
}

.center-card-contact span,
.center-card-email span {
  font-size: 16px;
  color: rgba(117, 117, 117, 1);
  word-break: break-all;
  font-weight: 400;
}

/* 地图区域 */
.map-right {
  flex: 1;
  padding: 39px 43px 39px 20px;
  min-width: 400px;
  min-height: 500px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
}

#chartMap {
  width: 100%;
  height: 100%;
  min-width: 400px;
  min-height: 500px;
  border-radius: 32px;
  background: #fff;
}

/* 地图卡片浮层 */
.mapPopupCard {
  position: fixed;
  left: 50%;
  top: 12%;
  transform: translate(-50%, 0);
  background: #fff;
  color: #15516a;
  border-radius: 17px;
  box-shadow: 0px 10px 36px rgba(20, 40, 62, .19), 0 2px 10px #50aaca20;
  min-width: 390px;
  max-width: 95vw;
  padding: 23px 32px 12px 32px;
  z-index: 999;
  font-family: "Microsoft YaHei", sans-serif;
  display: none;
  animation: showCard .18s;
  transition: left .18s, top .18s;
}

@keyframes showCard {
  from {
    opacity: 0;
    transform: scale(0.93) translate(-50%, 5%);
  }

  to {
    opacity: 1;
    transform: scale(1) translate(-50%, 0);
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
  color: rgba(0, 0, 0, 1);
}

.popup-close {
  cursor: pointer;
  font-size: 27px;
  color: #666;
  margin-left: 8px;
  transition: color .15s;
}

.popup-close:hover {
  color: #faad14;
}

.popup-content {
  font-size: 16px;
  margin-bottom: 6px;
}

.popup-address-list {
  margin-bottom: 9px;
}

.popup-address-group {
  display: flex;
  align-items: center;
}

.popup-address-icon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 9px;
  min-width: 22px;
  margin-top: 2.5px;
}

.popup-address-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.95;
}

.popup-address-list-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.popup-address-row {
  display: flex;
  align-items: center;
  min-height: 22px;
}

.popup-address-text {
  color: rgba(117, 117, 117, 1);
  font-size: 16px;
  flex: 1;
  word-break: break-all;
}

.popup-nav-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.popup-nav-btn .nav-icon-img {
  width: 20px;
  height: 20px;
  opacity: .8;
}

.popup-nav-btn .nav-icon-img:hover {
  opacity: 1;
}

.popup-contact,
.popup-email {
  margin: 10px 0 0 0;
  color: rgba(117, 117, 117, 1);
  font-size: 15px;
  display: flex;
  align-items: center;
  word-break: break-all;
}

.popup-contact .contact-icon-img,
.popup-email .contact-icon-img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  object-fit: contain;
  vertical-align: middle;
  opacity: 0.8;
}

.contact-top-area {
  max-width: 1440px;
  margin: 0 auto;
  /* height: 265px; */
  display: flex;
  align-items: stretch;
  padding-top: 192px;
  padding-bottom: 0;
}

.arrows-group img {
  height: 265px;
  width: auto;
}

.contact-content {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.contact-info-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  justify-content: center;
}

.contact-title {
  color: rgba(0, 61, 92, 1);
  font-weight: 700;
  font-size: 64px;
  line-height: 120%;
  letter-spacing: 1px;
}

.contact-desc {
  font-size: 20px;
  font-weight: 400;
  color: rgba(44, 56, 77, 0.96);
  margin-top: 30px;
  margin-bottom: 13px;
  line-height: 140%;
}

.contact-phone {
  font-size: 36px;
  font-weight: 600;
  color: #027380;
  margin-top: 0px;
  letter-spacing: 1px;
}

.arrows-group {
  position: relative;
  /* width: 420px; */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 64px;
}

.arrow {
  /* position: absolute;
  top: 0; */
  height: 100%;
  /* 全部265px高 */
  transition: transform 0.45s cubic-bezier(.81, 0, .24, 1);
}

.arrow1 {
  left: 0;
  transform: translateX(-130px);
  z-index: 1;
}

.arrow2 {
  left: 130px;
  /* 加宽间距以适配大图 */
  transform: translateX(-88px);
  z-index: 2;
}

.arrow3 {
  left: 260px;
  transform: translateX(-39px);
  z-index: 3;
}

.arrow1.to-final {
  transform: translateX(0);
}

.arrow2.to-final {
  transform: translateX(0);
}

.arrow3.to-final {
  transform: translateX(0);
}

.china-contact {
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 111px;
  max-width: 1440px;
}

.china-contact-header {
  font-weight: 700;
  font-size: 32px;
  color: rgba(0, 61, 92, 1);
  text-align: center;
  margin-bottom: 36px;
}

.china-contact-cards {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.china-card-item {
  background: #fff;
  border-radius: 16px;
  padding: 20px 20px 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(36px);
  /* animation: none; */
  flex: 1;
  transition: opacity .6s, transform .4s;
}

@keyframes chinaCardUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.china-contact.in-view .china-card-item {
  animation: chinaCardUp 0.96s cubic-bezier(.64, .11, .63, 1.02) forwards;
}

.china-contact.in-view .china-card-item:nth-child(1) {
  animation-delay: .10s;
}

.china-contact.in-view .china-card-item:nth-child(2) {
  animation-delay: .33s;
}

/* 增大间隔 */
.china-contact.in-view .china-card-item:nth-child(3) {
  animation-delay: .56s;
}

.china-contact.in-view .china-card-item:nth-child(4) {
  animation-delay: .83s;
}


.china-card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.china-card-title {
  font-size: 20px;
  font-weight: 700;
  color: rgba(0, 61, 91, 1);
  margin-bottom: 40px;
}

.china-card-row {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
  color: #003d5b;
  gap: 8px;

  line-height: 1.5;
  word-break: break-all;
}

.m-bottom {
  margin-bottom: 16px;
}

.china-card-miniicon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.china-card-miniicon.align-top {
  align-self: flex-start;
  margin-top: 4px;
}

@media(max-width:768px) {
  .contact-top-area {
    padding-top: 104px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .contact-title {
    font-size: 32px;
    line-height: 48px;
  }

  .contact-desc {
    font-size: 18px;
    line-height: 24px;
    margin: 0;
  }

  .contact-phone {
    font-size: 20px;
    line-height: 30px;
  }

  .contact-content {
    display: grid;
  }

  .arrows-group {
    width: 100%;
    height: auto;
    margin: 40px 0;
    justify-content: left;
    position: relative;
  }

  .arrow {
    position: static;
    /* height: 94px; */
    width: auto;
    transform: none;
  }

  .contact-info-texts {
    gap: 16px;
  }

  .panel-title {
    font-size: 14px;
    line-height: 22px;
  }

  .center-card {
    padding: 16px;
  }

  .center-card-title {
    font-size: 14px;
    line-height: 22px;
  }

  .tab-label {
    padding: 0 6px;
    line-height: 16px;
    font-size: 10px;
  }

  .sidebar-panel {
    padding: 16px 16px 16px 16px;
    gap: 16px;
    order: 2;
    width: 100%;
    box-sizing: border-box;
    max-height: 400px;
    overflow: hidden;
    overflow-y: auto;
  }

  .arrows-group img {
    height: 94px;
  }

  .tab-labels {
    gap: 8px;
  }

  .tab-labels {
    margin-bottom: 16px;
  }

  .multi-address-list {
    gap: 6px;
  }

  .multi-address-text {
    font-size: 12px;
    line-height: 18px;
  }

  .multi-address-icon-img {
    height: 13px;
    width: 11px;
  }

  .multi-address-icon-block {
    margin-right: 13px;
  }

  .nav-icon-img {
    height: 8px;
    width: auto;
  }

  .nav-icon-btn {
    margin-left: 0;
  }

  .center-card-list {
    overflow-y: visible;
    padding-right: 0;
    height: auto;
    margin-top: 0;
  }

  .map-right {
    width: 100%;
    min-width: 100%;
    min-height: 400px;
    /* 调整手机端地图高度 */
    padding: 0;
    order: 1;
    /* 放在卡片列表上面 */
    border-radius: 12px 12px 0 0;
    overflow: hidden;
  }

  .page-bg-center {
    padding: 70px 16px 40px;
  }

  .container-main {
    flex-direction: column;
    /* 改为垂直排列 */
    width: 100%;
    height: auto;
    /* 高度自适应 */
    border-radius: 12px;
    overflow: visible;
    background-position: -100px 0;
  }

  #chartMap {
    width: 100%;
    min-width: 100%;
    min-height: 400px;
    border-radius: 12px 12px 0 0;
  }

  .search-box-bar {
    margin-right: 0;
    border-radius: 20px;
  }

  .mapPopupCard {
    min-width: 250px;
    max-width: 70vw;
    padding: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  /* 移除滚动条样式 */
  .center-card-list::-webkit-scrollbar {
    display: none;
  }

  .china-contact-cards {
    display: grid;
    gap: 24px;
  }

  .china-contact {
    padding: 0 24px 40px;
    width: auto;
  }

  .china-contact-header {
    font-size: 24px;
    line-height: 36px;
    text-align: left;
    width: 100%;
  }

  .china-card-icon {
    margin-bottom: 16px;
  }

  .china-card-title {
    margin-bottom: 33px;
    line-height: 30px;
  }

  .china-card-row {
    gap: 6px;
    line-height: 22px;
  }

  .china-card-miniicon {
    width: 24px;
    height: auto;
  }

  .china-card-item {
    padding: 16px 16px 32px 16px;
  }
}

@media (min-width: 769px) and (max-width: 1600px) {
  .contact-content {
    padding-left: 32px;
  }

  .page-bg-center-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .china-contact {
    padding-left: 32px;
    padding-right: 32px;
  }
}
