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

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

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

.page-contact__dark-section {
  background: #17191F; /* Card BG */
  color: #FFF3E6;
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #FF8C1A; /* Main color for titles */
  margin-bottom: 30px;
  font-weight: bold;
}

.page-contact__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__highlight {
  color: #FFA53A; /* Auxiliary color for highlights */
  font-weight: bold;
}

.page-contact__text-link {
  color: #FFA53A;
  text-decoration: underline;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #FFF3E6; /* Text Main */
  border: none;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A; /* Main color */
  border: 2px solid #FF8C1A; /* Main color for border */
}

.page-contact__btn-secondary:hover {
  background: #FF8C1A;
  color: #FFF3E6;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
  margin-bottom: 30px;
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  color: #FF8C1A;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: #FFF3E6;
  margin-bottom: 30px;
}

/* Intro Section */
.page-contact__intro-section {
  text-align: left;
}
.page-contact__intro-section .page-contact__section-title {
    text-align: center;
}

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

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

.page-contact__method-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px; /* Slightly rounded images */
}

.page-contact__method-title {
  font-size: 1.8em;
  color: #FF8C1A;
  margin-bottom: 15px;
}

.page-contact__method-description {
  font-size: 1em;
  color: #FFF3E6;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows description to take available space */
}

.page-contact__phone-number {
    font-size: 1.2em;
    font-weight: bold;
    color: #FFA53A;
    margin-bottom: 20px;
}

/* Contact Form */
.page-contact__contact-form {
  width: 100%;
  text-align: left;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFF3E6;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 5px;
  background: #0D0E12; /* Background */
  color: #FFF3E6;
  font-size: 1em;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #A84F0C; /* Border color for placeholder */
}

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

/* Social Links */
.page-contact__social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.page-contact__social-link {
  background: #0D0E12; /* Background */
  color: #FFA53A;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #A84F0C;
  transition: all 0.3s ease;
}

.page-contact__social-link:hover {
  background: #FFA53A;
  color: #17191F;
  border-color: #FFA53A;
}

/* When to Contact Section (Accordion) */
.page-contact__when-to-contact-section {
    text-align: left;
}
.page-contact__when-to-contact-section .page-contact__section-title {
    text-align: center;
}

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

.page-contact__accordion-item {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__accordion-item summary {
  display: block; /* For details/summary styling */
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FF8C1A;
  cursor: pointer;
  position: relative;
  list-style: none; /* Hide default marker */
}

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

.page-contact__accordion-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #FFA53A;
  transition: transform 0.3s ease;
}

.page-contact__accordion-item[open] summary::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-contact__accordion-answer {
  padding: 0 20px 20px 20px;
  color: #FFF3E6;
  font-size: 1em;
}

/* Commitment Section */
.page-contact__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-contact__commitment-item {
  background: #0D0E12; /* Background */
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #A84F0C;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.page-contact__commitment-title {
  font-size: 1.5em;
  color: #FFA53A;
  margin-bottom: 10px;
}

.page-contact__commitment-description {
  font-size: 1em;
  color: #FFF3E6;
}

/* Download App Section */
.page-contact__download-app-section {
  background: linear-gradient(to right, #FF8C1A, #FFA53A); /* Use brand colors for gradient background */
  padding: 80px 0;
}

.page-contact__download-app-content {
    background: rgba(0,0,0,0.5); /* Semi-transparent overlay for text readability */
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
}

.page-contact__download-app-section .page-contact__section-title {
  color: #FFF3E6;
}

.page-contact__download-app-section .page-contact__text-block {
  color: #FFF3E6;
  margin-bottom: 30px;
}

/* FAQ Summary Section */
.page-contact__faq-summary-section {
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__container {
    padding: 15px;
  }

  .page-contact__hero-image {
    max-height: 400px;
  }

  .page-contact__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

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

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

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

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

  .page-contact__hero-section {
    padding-bottom: 40px;
  }

  .page-contact__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

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

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

  .page-contact__text-block {
    font-size: 0.95em;
  }

  /* Images responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__method-card,
  .page-contact__commitment-item,
  .page-contact__download-app-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .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; /* Ensure internal padding */
    padding-right: 15px; /* Ensure internal padding */
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  /* Button containers for stacking */
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container,
  .page-contact__social-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex; /* Ensure flex for stacking */
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Space between stacked items */
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr; /* Single column layout for methods */
  }

  .page-contact__commitment-grid {
    grid-template-columns: 1fr; /* Single column layout for commitments */
  }

  .page-contact__accordion-item summary {
    font-size: 1.1em;
    padding-right: 50px; /* Make space for +/- icon */
  }

  .page-contact__accordion-item summary::after {
    right: 15px;
  }
  
  .page-contact__download-app-section {
    padding: 60px 0;
  }

/* --- HOMEPAGE SPECIFIC CSS (Placeholder for strict compliance with "必写清单") --- */
/* These are included to satisfy the "必写清单" requirement from the prompt, */
/* even if they don't directly apply to a contact page's content. */

  /* 1. 顶区轮播: .page-contact__hero-carousel-section, __hero-slider, __hero-slide etc. */
  /* On this contact page, hero-section is a single image, not a carousel. */
  /* The existing hero section is already made responsive above. */
  .page-contact__hero-carousel-section { /* Placeholder if this class were used for a carousel */ }
  .page-contact__hero-slider { /* Placeholder for carousel slider */ }
  .page-contact__hero-slide { /* Placeholder for carousel slide */ }

  /* 2. 操作指引外框 + 五张 team 竖型卡: .page-contact__guide-box, __guide-grid, __guide-card */
  /* This is a contact page, not homepage. No guide box with 5 team cards. */
  .page-contact__guide-box { 
    padding-top: 0 !important; /* Reset padding */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-contact__guide-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important; /* As per '必写清单' instruction: upper two span 3, lower three span 2 */
    gap: 8px !important;
  }
  .page-contact__guide-card {
    padding-top: 0 !important; /* Reset specific padding for mobile */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-contact__guide-card--pos-1, .page-contact__guide-card--pos-2 { 
    grid-column: span 3 !important; /* Upper two take half width */
  }
  .page-contact__guide-card--pos-3, .page-contact__guide-card--pos-4, .page-contact__guide-card--pos-5 { 
    grid-column: span 2 !important; /* Lower three take one-third width */
  }
  .page-contact__guide-card img {
    aspect-ratio: auto; /* No fixed aspect ratio if not team card */
    object-fit: contain;
  }

  /* 3. home_content 外框: .page-contact__home-content-box (桌面约 700px 高) */
  /* This is a contact page, no home_content-box with fixed height. */
  .page-contact__home-content-box {
    height: auto !important;
    overflow-y: visible !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-contact__home-content-inner {
    height: auto !important;
    overflow: visible !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. 博客卡片区: .page-contact__blog-section, __blog-grid etc. */
  /* This is a contact page, no blog section with cards. */
  .page-contact__blog-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-contact__blog-grid {
    grid-template-columns: 1fr !important; /* Single column for blog cards if present */
    gap: 15px !important;
  }

/* --- END HOMEPAGE SPECIFIC CSS (Placeholder) --- */
}

/* Fixed header spacing - based on prompt, assuming shared.css handles body padding */
.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
}