/* 联系我们页面样式 */

/* 第一板块：背景图+标题 */
.contact-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.contact-hero-img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.85);
}

.contact-hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

/* 第二板块：左图右文 */
.contact-info {
  padding: 80px 0;
  background-color: #fff;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 0 20px;
}

.contact-image {
  flex: 1;
}

.contact-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.contact-content {
  flex: 1;
}

.contact-text {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* 国家信息 */
.contact-country {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

/* 响应式容器布局 - 固定尺寸容器 */
.aniy-wrap {
  flex: 1 1 calc(25% - 0px);
  min-width: 300px;
  max-width: 100%;
  height: 200px; /* 固定高度 */
  position: relative;
  background-color: #000000;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 第二排容器图片缩小 */
.aniy-wrap:nth-child(4) .aniy-1,
.aniy-wrap:nth-child(5) .aniy-1 {
  background-size: 100% auto; /* 图片宽度 */
  background-position: center 50%;
  background-repeat: no-repeat;
}

.aniy-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain; /* 改为contain确保图片完整显示 */
  background-position: center;
  background-repeat: no-repeat;
  padding: 0px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform: rotateY(0);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.aniy-1 .name {
  width: 100%;
  font-size: clamp(18px, 2vw, 26px); /* 响应式字体大小 */
  font-weight: 900;
  color: #ffffff;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.aniy-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffba00;
  transform: rotateY(180deg);
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1),
    opacity 0.55s ease 0.25s;
  backface-visibility: hidden;
  padding: 0px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.aniy-2 .name {
  color: #ffffff;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.aniy-2 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.aniy-2 a:hover {
  color: #000000;
}

.aniy-2 .subname {
  font-size: clamp(14px, 1.6vw, 18px);
  color: #ffffff;
  line-height: 1.5;
  font-weight: normal;
}

.aniy-wrap:hover {
  transform: scale(1.02);
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.aniy-wrap:hover .aniy-1 {
  transform: rotateY(-180deg);
}

.aniy-wrap:hover .aniy-2 {
  transform: rotateY(0);
}

/* 表单 */
.contact-form {
  padding: 80px 0;
  background-color: #fff;
  max-width: 1380px;
  margin: 0 auto;
}
.contact-form-title {
  font-size: 36px;
  font-weight: 700;
}
.service-title {
  /* width: 100%; */
  font-size: 30px;
  font-weight: 900;
  color: #000000;
  margin: 0 0 20px 0;
  letter-spacing: 1px;
  display: inline-block;
  position: relative;
  padding-left: 40px;
}
.service-title-underline {
  position: absolute;
  bottom: -8px;
  left: 40px; /* 与商字对齐，保持与标题的padding-left一致 */
  width: calc(100% - 40px); /* 调整宽度，从商字开始到右侧 */
  height: 3px;
  background-color: #000000;
  margin: 0;
}

.service-title-underline::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -4px;
  width: 16px;
  height: 16px;
  background-color: #000000;
  border-radius: 50%;
}
.form-group {
  display: flex;
  margin-bottom: 48px;
  align-items: center;
}
.form-group label {
  width: 25%;
  text-align: right;
  font-size: 30px;
  font-weight: 900;
  color: #000000;
  line-height: 80px;
}
.form-group input,
.form-group textarea {
  width: 75%;
  height: 80px;
  line-height: 80px;
  background: #f2f2f2;
  border: none;
  color: #606266;
  padding: 1px 11px;
  max-width: 610px;
  margin-left: 10px;
  border: none;
  box-shadow: none;
  font-size: 30px;
}
.form-group textarea {
  max-width: 100%;
  min-height: 330px;
}
.form-group .checkbox-input {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  accent-color: #FFBA00;
}
/* .form-group .checkbox-input:checked + .checkbox-text {
  background-color: #FFBA00;
} */
.form-group .checkbox-text {
  font-size: 20px;
  color: #666;
}
.submit-btn {
    background: #ffba00;
    border-radius: 20px;
    box-shadow: 0 10px 20px #ffba0070;
    color: #000;
    cursor: pointer;
    font-size: 30px;
    font-weight: 900;
    height: 86px;
    line-height: 86px;
    margin: 0 auto 88px;
    text-align: center;
    width: 257px;
    border: none;
    margin: 0 auto;
    display: block;
    text-align: center;
}
.aniy-wrap {
  flex: 0 0 33.33%;
  height: 0;
  padding-bottom: 20%; /* 降低为5:1的宽高比 */
  position: relative;
  background-color: #000000;
  overflow: hidden;
}
.aniy-wrap:nth-child(4),
.aniy-wrap:nth-child(5) {
  flex: 0 0 50%;
}
.aniy-1 {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform: rotateY(0);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.aniy-1 .name {
  width: 100%;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  line-height: 37px;
}
.aniy-2 {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: #ffba00;
  transform: rotateY(180deg);
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1),
    opacity 0.55s ease 0.25s;
  backface-visibility: hidden;
  padding: 0px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.aniy-2 .name {
  color: #ffffff;
  font-size: 20px;
}
.aniy-2 a {
  color: #ffffff;
}
.aniy-2 .subname {
  font-size: 20px;
  color: #ffffff;
  line-height: 35px;
  font-weight: normal;
}
.aniy-wrap:hover {
  .aniy-1 {
    transform: rotateY(-180deg);
  }

  .aniy-2 {
    transform: rotateY(0);
  }
}
.aniy-wrap58 {
  /* padding-top: 58%; */
  background-color: black;
}
/* 响应式适配 - 固定容器尺寸 */

/* 大屏幕适配 (1024px以上) */
@media screen and (min-width: 1025px) {
  .aniy-wrap {
    flex: 1 1 calc(33.333% - 0px);
    height: 200px;
  }
  
  .aniy-wrap:nth-child(4),
  .aniy-wrap:nth-child(5) {
    flex: 1 1 calc(50% - 0px);
    height: 200px;
  }
}

/* 平板适配 (768px - 1024px) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .aniy-wrap {
    flex: 1 1 calc(50% - 0px);
    height: 180px;
    min-width: 250px;
  }
  
  .aniy-wrap:nth-child(4),
  .aniy-wrap:nth-child(5) {
    flex: 1 1 calc(100% - 0px);
    height: 180px;
  }
  
  .aniy-1 .name {
    font-size: clamp(20px, 3vw, 24px);
  }
  
  .aniy-2 .name {
    font-size: clamp(18px, 2.5vw, 22px);
  }
  
  .aniy-2 .subname {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.4;
  }
}

/* 移动端适配 (768px以下) */
@media screen and (max-width: 768px) {
  .contact-hero-title {
    font-size: 48px;
  }

  .contact-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }

  .contact-content {
    padding-left: 0;
  }
  
  /* 中文文本换行处理 */
  .chinese-text, 
  html[lang="zh"] .contact-text,
  html[lang="zh"] .contact-hero-title,
  html[lang="zh"] .service-title {
    word-break: keep-all;
  }

  .contact-country {
    gap: 0;
  }
  
  .aniy-wrap {
    flex: 1 1 100%;
    height: 160px;
    min-width: 100%;
    margin: 0;
  }
  
  .aniy-wrap:nth-child(4),
  .aniy-wrap:nth-child(5) {
    flex: 1 1 100%;
    height: 160px;
  }
  
  .aniy-1 .name {
    font-size: clamp(18px, 4vw, 22px);
  }
  
  .aniy-2 .name {
    font-size: clamp(16px, 3.5vw, 20px);
  }
  
  .aniy-2 .subname {
    font-size: clamp(14px, 3vw, 18px);
    line-height: 1.3;
  }
}

/* 超小屏幕适配 (480px以下) */
@media screen and (max-width: 480px) {
  .aniy-wrap {
    height: 140px;
  }
  
  .aniy-wrap:nth-child(4),
  .aniy-wrap:nth-child(5) {
    height: 140px;
  }
  
  .aniy-1,
  .aniy-2 {
    padding: 0px 16px;
  }
  
  .aniy-1 .name {
    font-size: clamp(16px, 5vw, 20px);
  }
  
  .aniy-2 .name {
    font-size: clamp(14px, 4.5vw, 18px);
  }
  
  .aniy-2 .subname {
    font-size: clamp(12px, 4vw, 16px);
    line-height: 1.2;
  }
}
@media screen and (max-width: 1280px) {
  .form-group textarea {
    max-width: 70%;
  }
}


.form-status {
  margin-top: 20px;
  padding: 12px;
  border-radius: 4px;
  font-size: 16px;
  text-align: center;
  min-height: 20px;
}

.form-status[style*="color: #28a745"] {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.form-status[style*="color: #dc3545"] {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

.submit-btn {
  background: #ffba00;
  border-radius: 20px;
  box-shadow: 0 10px 20px #ffba0070;
  color: #000;
  cursor: pointer;
  font-size: 30px;
  font-weight: 900;
  height: 86px;
  line-height: 86px;
  margin: 0 auto 88px;
  text-align: center;
  width: 257px;
}

.submit-btn:hover {
  background-color: #e6a800;
}

.submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .contact-hero-title {
    font-size: 28px;
    letter-spacing: 1px;
  }
  
  .submit-btn {
    margin-left: 0;
    width: 100%;
  }
}

/* 隐藏 reCAPTCHA v3 的徽标和文字提示 */
.grecaptcha-badge {
  visibility: hidden !important;
  display: none !important;
}
