.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so use light text */
  background-color: #000000; /* Ensure main background is dark */
}

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

/* Hero Section */
.page-contact__hero-section {
  padding: var(--header-offset, 120px) 0 80px 0; /* Default padding if shared doesn't set body padding-top */
  text-align: center;
  background-color: #26A9E0; /* Brand color for hero background */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-contact__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #ffffff;
}

.page-contact__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-contact__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-contact__btn-primary:hover {
  background-color: #d46f06;
  border-color: #d46f06;
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-contact__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* General Section Styles */
.page-contact__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background for contrast */
  color: #ffffff;
}

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

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-contact__method-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  display: block; /* Ensure it's a block element for margin auto */
}

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

.page-contact__method-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-contact__method-link {
  display: inline-block;
  margin-top: auto; /* Push link to bottom */
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #26A9E0;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-contact__method-link:hover {
  color: #EA7C07;
  border-color: #EA7C07;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: auto; /* Push social links to bottom */
}

.page-contact__social-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__social-link:hover {
  color: #EA7C07;
}

/* Why Contact Section */
.page-contact__why-contact-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-contact__reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-contact__reason-item {
  background-color: rgba(38, 169, 224, 0.1); /* Light transparent brand color */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
}

.page-contact__reason-item:hover {
  transform: translateY(-5px);
  background-color: rgba(38, 169, 224, 0.2);
}

.page-contact__reason-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-contact__reason-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  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: #26A9E0;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

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

.page-contact__submit-button {
  width: auto;
  padding: 15px 40px;
  cursor: pointer;
  font-size: 1.1em;
  border: none;
  border-radius: 8px;
  background-color: #EA7C07;
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__submit-button:hover {
  background-color: #d46f06;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  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: #f0f0f0;
}

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

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

/* Legal Info Section */
.page-contact__legal-info-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
}

.page-contact__legal-details {
  max-width: 900px;
  margin: 40px auto 0 auto;
  background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent black */
  padding: 30px;
  border-radius: 12px;
  text-align: left;
}

.page-contact__legal-details p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-contact__legal-details p:last-child {
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }

  .page-contact__hero-description {
    font-size: 1.1em;
  }

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

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

  .page-contact__contact-form {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  /* Fixed Header Spacing - Assume shared.css handles body padding-top */
  .page-contact__hero-section {
    padding-top: 0; /* Avoid double padding if body padding-top is set by shared */
    padding-bottom: 50px;
  }

  /* HERO 主图区域 */
  .page-contact__hero-title {
    font-size: 2em;
    margin-top: 30px;
  }

  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-contact__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* 按钮与按钮容器 */
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    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__hero-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
  }

  /* General Section Adjustments */
  .page-contact__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }

  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* Contact Methods & Why Contact Grids */
  .page-contact__methods-grid,
  .page-contact__reasons-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-card,
  .page-contact__reason-item {
    padding: 25px;
    margin: 0 15px;
  }

  .page-contact__method-icon {
    max-width: 200px;
  }

  /* Contact Form Section */
  .page-contact__contact-form {
    padding: 25px;
    margin: 0 15px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
  }

  .page-contact__submit-button {
    width: 100%;
    padding: 12px 20px;
  }

  /* FAQ Section */
  .page-contact__faq-list {
    margin: 0 15px;
  }

  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

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

  /* Legal Info Section */
  .page-contact__legal-info-section {
    padding: 50px 0;
  }

  .page-contact__legal-details {
    padding: 25px;
    margin: 30px 15px 0 15px;
  }

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

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__legal-details {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* 确保内容区图片尺寸不小于 200px (CSS for img in content area) */
  .page-contact__method-icon {
    min-width: 200px !important;
    min- /* Adjust height based on aspect ratio */
  }
}

/* Global image settings to prevent small icons */
.page-contact img {
  min-width: 200px;
  min- /* Assuming a common aspect ratio, adjust as needed */
  object-fit: cover; /* Ensure images fill their space nicely */
}

/* Ensure images within cards are large */
.page-contact__method-card .page-contact__method-icon {
    width: 100%; /* Occupy full width of card */
    max-width: 100%; /* Ensure it doesn't exceed card width */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px;
    min-height: 150px; /* Minimum size for content images */
}