/* General styling for .page-contact */
.page-contact {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background: #0A0A0A; /* Background */
  line-height: 1.6;
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #FFD36B; /* Glow */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-contact__main-title {
  font-weight: bold;
  line-height: 1.2;
  color: #FFD36B; /* Glow */
  text-align: center;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6;
}

.page-contact__text-block {
  margin-bottom: 20px;
  color: #FFF6D6;
}

/* Hero Section */
.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: #0A0A0A; /* Background */
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-content-wrapper {
  display: flex;
  flex-direction: column; /* Enforce image above text */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact__hero-image-container {
  width: 100%;
  max-width: 1200px; /* Match width of content wrapper */
  margin-top: 30px; /* Space between text and image */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Min size */
}

/* Contact Methods Section */
.page-contact__contact-methods-section {
  padding: 60px 0;
  background: #0A0A0A; /* Background */
}

.page-contact__methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-contact__method-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-icon {
  width: 100%;
  max-width: 250px; /* Example size, min 200px */
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-contact__method-title {
  font-size: 1.5em;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
}

.page-contact__method-description {
  color: #FFF6D6; /* Text Main */
  margin-bottom: 25px;
  flex-grow: 1; /* Push buttons to bottom */
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* Ensure wrap on mobile */
}

.page-contact__social-btn {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for light button */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__social-btn:hover {
  opacity: 0.9;
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background: #0A0A0A; /* Background */
}

.page-contact__form {
  max-width: 700px;
  margin: 40px auto 0;
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #3A2A12; /* Border */
  border-radius: 5px;
  background: #0A0A0A; /* Darker background for input */
  color: #FFF6D6; /* Text Main */
  box-sizing: border-box;
  font-size: 1em;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #999;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFD36B; /* Glow */
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__form-submit-btn {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for light button */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__form-submit-btn:hover {
  opacity: 0.9;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background: #0A0A0A; /* Background */
}

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

.page-contact__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  color: #FFF6D6; /* Text Main */
  font-size: 1em;
  line-height: 1.7;
}

/* Why Choose Section */
.page-contact__why-choose-section {
  padding: 60px 0 80px;
  background: #0A0A0A; /* Background */
  text-align: center;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Ensure wrap on mobile */
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: opacity 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, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for light button */
  border: none;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
}

.page-contact__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow */
  border: 2px solid #FFD36B; /* Glow */
}

.page-contact__btn-secondary:hover {
  opacity: 0.8;
}

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

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

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

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

  .page-contact__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Apply clamp for H1 on mobile */
    margin-bottom: 15px;
  }

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

  /* Hero Section */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 20px;
  }
  
  .page-contact__hero-image-container {
    margin-top: 20px;
  }

  /* Contact Methods Section */
  .page-contact__contact-methods-section {
    padding: 30px 0;
  }

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

  .page-contact__method-card {
    padding: 20px;
  }

  .page-contact__method-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-contact__social-links {
    flex-direction: column; /* Stack social buttons */
    gap: 10px;
  }

  .page-contact__social-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-contact__form {
    padding: 25px;
    margin-top: 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-contact__form-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-contact__faq-list {
    margin-top: 20px;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  /* Why Choose Section */
  .page-contact__why-choose-section {
    padding: 30px 0 40px;
  }

  .page-contact__cta-buttons {
    flex-direction: column; /* Stack CTA buttons */
    gap: 15px;
    margin-top: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* Universal Image and Button Responsive Styles (explicitly required) */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

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

  .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;
  }

  /* --- Required placeholder CSS for other sections not on contact page (per "必写清单") --- */
  /* 1. 顶区轮播 (__hero-carousel-section) */
  .page-contact__hero-carousel-section { /* Placeholder, actual contact page uses hero-section directly */
    padding-top: 10px !important;
    padding-bottom: 20px;
    overflow: hidden;
  }
  .page-contact__hero-slider { /* Placeholder for slider container */
    width: 100%;
    position: relative;
  }
  .page-contact__hero-slide { /* Placeholder for individual slide */
    width: 100%;
    display: block;
    object-fit: cover;
  }
  .page-contact__hero-slider-prev,
  .page-contact__hero-slider-next { /* Placeholder for slider arrows */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
  }
  .page-contact__hero-slider-prev { left: 10px; }
  .page-contact__hero-slider-next { right: 10px; }

  /* 2. 操作指引外框 + 五张 `team` 竖型卡 (__guide-box) */
  .page-contact__guide-box { /* Placeholder for guide box */
    padding: 15px !important;
    background: #111111;
    border-radius: 8px;
  }
  .page-contact__guide-grid { /* Placeholder for guide grid */
    display: grid;
    grid-template-columns: repeat(6, 1fr) !important; /* Total 6 columns for mobile */
    gap: 10px !important;
    padding: 0 !important; /* Reset any padding */
  }
  .page-contact__guide-card { /* Placeholder for guide card */
    padding-top: 0 !important; /* Reset padding-top on mobile */
    flex: none !important; /* Override flex properties */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  /* Mobile layout: top 2 cards span 3 columns, bottom 3 cards span 2 columns */
  .page-contact__guide-card:nth-child(1),
  .page-contact__guide-card:nth-child(2) {
    grid-column: span 3 !important;
  }
  .page-contact__guide-card:nth-child(3),
  .page-contact__guide-card:nth-child(4),
  .page-contact__guide-card:nth-child(5) {
    grid-column: span 2 !important;
  }
  .page-contact__guide-card img { /* Placeholder for guide card image */
    aspect-ratio: 250/350 !important; /* Maintain aspect ratio */
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  /* Text under guide card is forbidden, so no specific mobile CSS for it */

  /* 3. `home_content` 外框 (__home-content-box) */
  .page-contact__home-content-box { /* Placeholder for home content box */
    max-width: 100% !important;
    height: auto !important; /* Auto height on mobile */
    margin: 0 auto !important;
    padding: 15px !important;
    border: 5px solid #3477c9;
    border-radius: 15px;
    box-shadow: 0 0 10px #3477c9;
    box-sizing: border-box;
  }
  .page-contact__home-content-inner { /* Placeholder for inner content */
    height: auto !important; /* Auto height on mobile */
    overflow: visible !important; /* Visible overflow on mobile */
  }

  /* 4. 博客卡片区 (__blog-section) */
  .page-contact__blog-section { /* Placeholder for blog section */
    padding: 30px 0 !important;
  }
  .page-contact__blog-grid { /* Placeholder for blog grid */
    grid-template-columns: repeat(1, 1fr) !important; /* Single column on mobile */
    gap: 20px !important;
  }
  .page-contact__blog-card { /* Placeholder for blog card */
    background: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    overflow: hidden;
  }
  .page-contact__blog-card-image { /* Placeholder for blog card image */
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-contact__blog-card-content { /* Placeholder for blog card content */
    padding: 15px;
  }
  .page-contact__blog-card-title { /* Placeholder for blog card title */
    font-size: 1.2em;
    color: #FFD36B;
    margin-bottom: 10px;
  }
  .page-contact__blog-card-description { /* Placeholder for blog card description */
    font-size: 0.9em;
    color: #FFF6D6;
  }

  /* 5. 通用图片与按钮 (already covered above, but re-emphasizing) */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"],
  .page-contact button[class*="btn"],
  .page-contact input[type="submit"] {
    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;
  }
}

/* --- END of Required placeholder CSS --- */