/* style/contact.css */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-contact__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height on desktop */
}

.page-contact__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.page-contact__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-contact__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-contact__section-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

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

.page-contact__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-contact__card:hover {
  transform: translateY(-5px);
}

.page-contact__card-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__card-title {
  font-size: 1.6rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__card-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__contact-detail {
  font-size: 1.1rem;
  color: #F2FFF6;
  font-weight: 500;
  margin-top: auto; /* Push to bottom */
}

.page-contact__card-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 200px;
}

.page-contact__card-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-contact__contact-form {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 40px;
  max-width: 700px;
  margin: 50px auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  font-size: 1.1rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: 500;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  background-color: #08160F;
  color: #F2FFF6;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #A7D9B8;
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #2AD16F;
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 209, 111, 0.3);
}

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-contact__why-support-section {
  margin-top: 80px;
}

.page-contact__why-support-content {
  display: flex;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}

.page-contact__why-support-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__why-support-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.page-contact__why-support-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__why-support-heading {
  font-size: 1.4rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-contact__why-support-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

.page-contact__faq-section {
  margin-top: 80px;
}

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

.page-contact__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-contact__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-contact__faq-qtext {
  flex-grow: 1;
}

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 20px;
  color: #2AD16F;
  transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 2000px; /* Sufficiently large to show all content */
  transition: max-height 0.5s ease-in;
}

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

.page-contact__faq-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  margin: 50px auto 0 auto;
  display: block;
}

.page-contact__map-section {
  margin-top: 80px;
}

.page-contact__map-placeholder {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  overflow: hidden;
  height: 450px;
  margin-top: 50px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-contact__final-cta-section {
  margin-top: 80px;
  margin-bottom: 80px;
  text-align: center;
}

.page-contact__cta-buttons-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-contact__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
}

.page-contact__cta-button--secondary {
  background: #11271B;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-contact__cta-button--secondary:hover {
  background: #0A4B2C;
  color: #F2FFF6;
  border-color: #F2FFF6;
}

/* --- General Image and Button Responsive Styles --- */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact a[class*="button"],
.page-contact a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-buttons,
.page-contact__button-group,
.page-contact__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-contact__section-title {
    font-size: 2rem;
  }

  .page-contact__contact-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-contact__why-support-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-contact__why-support-image {
    max-width: 100%;
  }

  .page-contact__faq-image {
    max-width: 100%;
  }
}

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

  .page-contact__container {
    padding: 20px 15px !important;
  }

  /* 1. HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
  }

  .page-contact__hero-content {
    padding: 20px 15px;
  }

  .page-contact__hero-title {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }

  .page-contact__hero-description {
    font-size: 1rem !important;
  }

  .page-contact__cta-button {
    font-size: 1rem !important;
    padding: 12px 25px !important;
  }

  /* 2. 产品展示图区域 (Not explicitly present, but general rule for image grids) */
  .page-contact__contact-cards {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-contact__card {
    padding: 20px !important;
  }

  .page-contact__card-icon {
    max-width: 200px !important;
  }

  .page-contact__card-title {
    font-size: 1.4rem !important;
  }

  .page-contact__card-description {
    font-size: 0.95rem !important;
  }

  .page-contact__contact-form {
    padding: 30px 20px !important;
    margin: 30px auto !important;
  }

  .page-contact__form-label {
    font-size: 1rem !important;
  }

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

  .page-contact__submit-button {
    font-size: 1rem !important;
    padding: 12px 25px !important;
  }

  .page-contact__why-support-content {
    flex-direction: column !important;
    gap: 20px !important;
  }

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

  .page-contact__why-support-item {
    padding: 20px !important;
    margin-bottom: 15px !important;
  }

  .page-contact__why-support-heading {
    font-size: 1.25rem !important;
  }

  .page-contact__why-support-text {
    font-size: 0.95rem !important;
  }

  .page-contact__faq-list {
    margin-top: 30px !important;
  }

  .page-contact__faq-question {
    padding: 15px 20px !important;
    font-size: 1.1rem !important;
  }

  .page-contact__faq-toggle {
    font-size: 1.5rem !important;
  }

  .page-contact__faq-answer {
    padding: 0 20px 15px 20px !important;
    font-size: 0.95rem !important;
  }

  .page-contact__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 30px !important;
  }

  .page-contact__map-placeholder {
    height: 300px !important;
    margin-top: 30px !important;
  }

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

  .page-contact__final-cta-section {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
  }

  .page-contact__cta-buttons-group {
    flex-direction: column !important;
    gap: 15px !important;
    margin-top: 30px !important;
    padding: 0 15px !important;
  }

  .page-contact__cta-button,
  .page-contact__cta-button--primary,
  .page-contact__cta-button--secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 3. 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 4. 按钮与按钮容器 */
  .page-contact__cta-button,
  .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;
  }

  .page-contact__cta-buttons-group {
    display: flex;
    flex-direction: column !important; /* Force vertical stacking for buttons */
  }

  /* 5. 其他内容模块 (General sections) */
  .page-contact__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
  }

  .page-contact__section-description {
    font-size: 1rem !important;
    margin-bottom: 30px !important;
  }

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__why-support-section,
  .page-contact__faq-section,
  .page-contact__map-section,
  .page-contact__final-cta-section {
    margin-top: 40px !important;
  }
}