.page-contact {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f0f2f5;
}

.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 50px;
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Light text for dark background */
  text-align: center;
}
.page-contact__hero-image-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px;
}
.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.page-contact__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-contact__hero-section h1 {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFF5E1;
  margin-bottom: 20px;
  max-width: 100%;
  font-size: clamp(2.2em, 3.5vw, 3.5em); /* H1 font size with clamp */
}
.page-contact__hero-section p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF5E1;
}
.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.page-contact__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  color: #7A0E0E; /* Default for gold buttons */
}
.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #7A0E0E; /* Deep Red text for gold button */
  border: none;
}
.page-contact__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.page-contact__btn-secondary {
  background-color: #E53935; /* Auxiliary color */
  color: #FFF5E1;
  border: 2px solid #F2B544; /* Custom border color */
}
.page-contact__btn-secondary:hover {
  background-color: #C91F17; /* Primary color on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* General section styling */
.page-contact__section {
  padding: 50px 20px;
  max-width: 1150px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: #f0f2f5;
  color: #333333;
}
.page-contact__section h2 {
  font-size: 2.2em;
  color: #C91F17;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}
.page-contact__section h3 {
  font-size: 1.5em;
  color: #E53935;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
}
.page-contact__section p {
  margin-bottom: 15px;
}
.page-contact__section ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 15px;
}
.page-contact__section li {
  margin-bottom: 8px;
}

/* Contact Form */
.page-contact__form-section {
  background-color: #D32F2F; /* Custom Card BG */
  color: #FFF5E1;
}
.page-contact__form-section h2,
.page-contact__form-section p {
    color: #FFF5E1;
}
.page-contact__form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: #7A0E0E; /* Deep Red for form background */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.page-contact__form-group {
  margin-bottom: 20px;
}
.page-contact__form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFF5E1;
}
.page-contact__form-group input[type="text"],
.page-contact__form-group textarea {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #F2B544; /* Custom border color */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFF5E1;
  font-size: 1em;
  box-sizing: border-box;
}
.page-contact__form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.page-contact__form-group input::placeholder,
.page-contact__form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.page-contact__form-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red text for gold button */
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-contact__form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Alternative Channels */
.page-contact__channels-list {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin-top: 30px;
}
.page-contact__channel-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  flex: 1 1 250px;
  max-width: 300px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-contact__channel-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.page-contact__channel-item a {
  text-decoration: none;
  color: #C91F17;
  font-weight: bold;
  font-size: 1.1em;
  display: block;
}
.page-contact__channel-item a:hover {
  color: #E53935;
}
.page-contact__channel-icon {
  width: 200px;
  height: auto;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}
.page-contact__note {
    text-align: center;
    font-style: italic;
    margin-top: 30px;
    color: #555555;
}

/* Why Us Section */
.page-contact__why-us-section {
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1;
}
.page-contact__why-us-section h2 {
    color: #FFF5E1;
}
.page-contact__why-us-section h3 {
    color: #F4D34D; /* Gold color for sub-titles */
}
.page-contact__why-us-section p {
    color: #FFF5E1;
}
.page-contact__why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.page-contact__feature-card {
  background-color: #D32F2F; /* Custom Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.page-contact__feature-card img {
  width: 200px;
  height: auto;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}
.page-contact__feature-card h3 {
  margin-top: 0;
  color: #F4D34D;
}
.page-contact__feature-card p {
  color: #FFF5E1;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #f0f2f5;
  color: #333333;
}
.page-contact__faq-list {
  max-width: 900px;
  margin: 0 auto;
}
.page-contact__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.page-contact__faq-item summary {
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.1em;
  color: #C91F17;
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.page-contact__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-contact__faq-qtext {
  flex-grow: 1;
}
.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #E53935;
}
.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: "-";
}
.page-contact__faq-answer {
  padding: 0 25px 20px;
  color: #555555;
  font-size: 1em;
  line-height: 1.6;
}
.page-contact__faq-answer p {
    margin-bottom: 10px;
}
.page-contact__faq-answer a {
    color: #C91F17;
    text-decoration: underline;
}

/* Final CTA Section */
.page-contact__cta-final {
  background-color: #E53935; /* Auxiliary color */
  color: #FFF5E1;
  text-align: center;
}
.page-contact__cta-final h2,
.page-contact__cta-final p {
    color: #FFF5E1;
}

/* General image styling for content images */
.page-contact__section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-section h1 {
    font-size: clamp(2em, 3.5vw, 3em);
  }
  .page-contact__section h2 {
    font-size: 2em;
  }
  .page-contact__channel-item {
    flex: 1 1 200px;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }
  .page-contact__hero-section h1 {
    font-size: 2em;
    padding: 0 15px;
  }
  .page-contact__hero-section p {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-contact__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  
  /* 2. 单栏长文容器 */
  .page-contact__section {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-contact__section h2 {
    font-size: 1.8em;
  }
  .page-contact__section h3 {
    font-size: 1.3em;
  }
  .page-contact__form-container {
    padding: 20px 15px;
  }
  .page-contact__form-group input[type="text"],
  .page-contact__form-group textarea {
    width: 100%;
  }

  /* 3. 通用图片与 figure */
  .page-contact img,
  .page-contact__hero-image,
  .page-contact__channel-icon,
  .page-contact__feature-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .page-contact__hero-image-wrap {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
  }

  /* 4. 按钮与按钮容器 */
  .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__form-submit-btn {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-contact__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }
  .page-contact__why-us-grid {
      grid-template-columns: 1fr;
  }
  .page-contact__feature-card {
      padding: 20px;
  }
  .page-contact__channel-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .page-contact__channels-list {
      flex-direction: column;
      gap: 15px;
      padding: 0 15px;
  }

  /* General mobile text size */
  .page-contact p, .page-contact li {
    font-size: 0.95em;
  }
}