/* style/contact.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --login-button-color: #EA7C07;
}

/* Base styles */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default dark text for light body background */
  background-color: var(--secondary-color);
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-contact__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-dark);
}

.page-contact__btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

.page-contact__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-description {
  color: var(--text-light);
}

.page-contact__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

/* Hero Section */
.page-contact__hero-section {
  padding-top: 0; /* Assuming shared.css sets body padding-top */
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__hero-section .page-contact__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.page-contact__hero-content {
  flex: 1;
  max-width: 600px;
}

.page-contact__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-light);
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-contact__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Info Section */
.page-contact__info-section {
  padding: 80px 0;
}

.page-contact__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-contact__info-card {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-contact__info-card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__info-card-text {
  font-size: 1.1em;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact__info-card-description {
  color: #666;
  font-size: 0.95em;
}

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 50px auto 0 auto;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__form-group {
  margin-bottom: 25px;
}

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-light);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(var(--secondary-color), 0.3);
}

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  padding: 15px 40px;
  font-size: 1.1em;
  display: block;
  margin: 30px auto 0 auto;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
}

.page-contact__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-contact__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #f0f0f0;
}

.page-contact__faq-title {
  font-size: 1.2em;
  color: var(--text-dark);
  margin: 0;
  font-weight: bold;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  color: var(--primary-color);
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px 25px;
}

.page-contact__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Social Media Section */
.page-contact__social-media-section {
  padding: 80px 0;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.page-contact__social-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-icon img {
  
  
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__social-icon:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.page-contact__social-icon--facebook:hover {
  background-color: #3b5998;
}

.page-contact__social-icon--twitter:hover {
  background-color: #00acee;
}

.page-contact__social-icon--telegram:hover {
  background-color: #0088cc;
}

.page-contact__social-icon--youtube:hover {
  background-color: #ff0000;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 80px 0;
  text-align: center;
}

.page-contact__commitment-text {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: #555;
}

.page-contact__commitment-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 0; /* Ensures no double padding if shared.css handles body */
    padding-bottom: 50px;
  }

  .page-contact__hero-section .page-contact__container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-contact__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-contact__hero-image-wrapper {
    order: -1; /* Image appears above text on mobile */
  }

  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 产品展示图区域 (Not explicitly present in Contact Us, but general image handling) */
  /* This section is for general image containers and images within .page-contact */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 其他内容模块 (General content sections) */
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__social-media-section,
  .page-contact__commitment-section {
    padding: 40px 0;
  }

  .page-contact__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-contact__section-description {
    margin-bottom: 30px;
  }

  .page-contact__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__contact-form {
    padding: 25px;
    margin: 30px auto 0 auto;
  }

  .page-contact__form-group {
    margin-bottom: 20px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 0.95em;
  }

  /* 按钮与按钮容器 */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  .page-contact__contact-form .page-contact__btn-primary {
    width: 100% !important;
    padding: 15px 20px;
  }

  .page-contact__social-links {
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
  }

  .page-contact__social-icon {
    width: 45px;
    height: 45px;
  }

  .page-contact__social-icon img {
    
    
  }

  .page-contact__commitment-text {
    font-size: 1em;
  }

  .page-contact__commitment-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
  }

  .page-contact__faq-title {
    font-size: 1.1em;
  }

  .page-contact__faq-answer {
    padding: 0 20px;
  }

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px;
  }
}