/* Base styles for page-contact */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  padding-top: 10px; /* Small top padding, body handles main offset */
}

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

.page-contact__section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-contact__section-title--light {
  color: #F2FFF6;
}

.page-contact__section-intro {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-contact__section-intro--light {
  color: #F2FFF6;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  padding-bottom: 40px; /* Space for content below image */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: clamp(36px, 5vw, 56px);
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 20px;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-contact__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-contact__btn-secondary {
  background: #11271B; /* Card B G */
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-contact__btn-secondary:hover {
  background: #2AD16F;
  color: #ffffff;
}

/* Cards */
.page-contact__card {
  background: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #F2FFF6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__card h3 {
  color: #F2C14E; /* Gold */
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-contact__card p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
}

/* Why Contact Section */
.page-contact__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Channels Section */
.page-contact__channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__channel-icon {
  width: 200px; /* Min size 200x200 */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__channel-title {
  color: #F2C14E;
  font-size: 24px;
  margin-bottom: 10px;
}

.page-contact__social-media-note {
  color: #A7D9B8;
  margin-top: 40px;
  font-size: 16px;
}

/* Guide Section */
.page-contact__guide-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-contact__guide-list li {
  background: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: #F2FFF6;
  font-size: 17px;
  display: flex;
  align-items: flex-start;
}

.page-contact__guide-list li strong {
  color: #F2C14E; /* Gold */
  margin-right: 10px;
  flex-shrink: 0;
}

.page-contact__guide-image {
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-contact__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card B G */
  color: #F2FFF6;
}

details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: #1a3628; /* Slightly lighter Card BG */
}

.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6;
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 25px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 0 0 10px 10px;
  color: #A7D9B8;
  font-size: 16px;
}

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

/* Commitment Section */
.page-contact__commitment-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-contact__commitment-list li {
  background: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: #F2FFF6;
  font-size: 17px;
  display: flex;
  align-items: center;
}

.page-contact__commitment-list li::before {
  content: '✓';
  color: #2AD16F;
  font-weight: bold;
  margin-right: 15px;
  font-size: 20px;
  flex-shrink: 0;
}

.page-contact__commitment-image {
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Section */
.page-contact__cta-section {
  background: #0A4B2C; /* Deep Green */
  padding: 80px 0;
  border-top: 1px solid #1E3A2A; /* Divider */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-image-wrapper {
    height: 450px;
  }
  .page-contact__main-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }
  .page-contact__hero-description {
    font-size: 18px;
  }
  .page-contact__section {
    padding: 50px 0;
  }
  .page-contact__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }
  .page-contact__section-intro {
    font-size: 17px;
  }
  .page-contact__card {
    padding: 25px;
  }
  .page-contact__card h3 {
    font-size: 20px;
  }
  .page-contact__channel-icon {
    width: 180px;
  }
  .page-contact__faq-qtext {
    font-size: 17px;
  }
  .page-contact__faq-toggle {
    font-size: 26px;
  }
  .page-contact__faq-answer {
    font-size: 15px;
  }
  .page-contact__guide-list li, .page-contact__commitment-list li {
    font-size: 16px;
  }
}

@media (max-width: 849px) {
  .page-contact__hero-image {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    filter: brightness(0.8); /* Slightly brighter for better visibility of contained image */
  }
  .page-contact__hero-image-wrapper {
    height: auto; /* Adjust height for contained image */
    min-height: 250px;
  }
  .page-contact__hero-section {
    padding-top: 10px; /* Small top padding for hero section */
  }
}

@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for contact page content */
  }
  .page-contact__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-contact__section {
    padding: 40px 0;
  }

  .page-contact__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 15px;
  }
  .page-contact__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* HERO 主图区域 */
  .page-contact__hero-image-wrapper {
    height: auto !important;
    min-height: 200px !important;
    margin-bottom: 20px;
  }
  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Force contain for mobile */
    aspect-ratio: unset !important;
  }
  .page-contact__main-title {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.3;
  }
  .page-contact__hero-description {
    font-size: 16px;
    max-width: 90% !important;
  }

  /* 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__channel-icon {
    width: 150px !important; /* Adjust icon size for mobile */
    height: auto !important;
  }
  .page-contact__guide-image, .page-contact__commitment-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 按钮与按钮容器 */
  .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 !important;
    padding-right: 15px !important;
    margin-bottom: 10px;
  }
  .page-contact__cta-button:last-child {
    margin-bottom: 0;
  }
  .page-contact__hero-content .page-contact__cta-button {
    max-width: 300px !important; /* Limit hero button width for better appearance */
    margin-left: auto;
    margin-right: auto;
  }
  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Products/Features Grid - General grid adaptation */
  .page-contact__features-grid,
  .page-contact__channel-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* 长文 SEO 区 */
  .page-contact__guide-list,
  .page-contact__commitment-list,
  .page-contact__faq-list {
    max-width: 100% !important;
    padding: 0 10px;
  }
  .page-contact__guide-list li,
  .page-contact__commitment-list li {
    padding: 15px;
    font-size: 15px;
  }
  .page-contact__guide-list li strong {
    font-size: 15px;
  }
  .page-contact__commitment-list li::before {
    font-size: 18px;
    margin-right: 10px;
  }

  /* FAQ specific mobile styles */
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-qtext {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
  }
  .page-contact__faq-answer p {
    font-size: 15px;
  }
}