/* Base styles for .page-contact */
.page-contact {
  color: var(--text-main, #FFF6D6); /* Default text color for dark background */
  background-color: var(--bg-primary, #0A0A0A); /* Main background color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-contact__hero-content {
  position: relative;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  padding: 20px;
  background: linear-gradient(0deg, var(--bg-primary, #0A0A0A) 0%, rgba(10, 10, 10, 0.8) 70%, rgba(10, 10, 10, 0.0) 100%);
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
}

.page-contact__main-title {
  font-size: 2.5em; /* Adjusted to be responsive */
  font-weight: bold;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 10px;
  line-height: 1.2;
}

.page-contact__subtitle {
  font-size: 1.1em;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
}

/* General Section Titles */
.page-contact__section-title {
  font-size: 2em;
  color: var(--primary-color, #F2C14E);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  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, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text on bright button */
  border: none;
}

.page-contact__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background: transparent;
  color: var(--primary-color, #F2C14E);
  border: 2px solid var(--border-color, #3A2A12);
}

.page-contact__btn-secondary:hover {
  background: var(--primary-color, #F2C14E);
  color: #111111;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Intro Section */
.page-contact__intro-section {
  padding: 40px 0;
  margin-bottom: 40px;
  background-color: var(--card-bg, #111111);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__intro-section p {
  color: var(--text-main, #FFF6D6);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 15px auto;
  font-size: 1.05em;
}

/* Channels Section */
.page-contact__channels-section {
  padding: 40px 0;
  margin-bottom: 40px;
}

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

.page-contact__channel-card {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-contact__channel-icon {
  width: 100%;
  max-width: 200px; /* Ensure images are not too small */
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-contact__channel-title {
  font-size: 1.4em;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 10px;
}

.page-contact__channel-card p {
  color: var(--text-main, #FFF6D6);
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Process Section */
.page-contact__process-section {
  padding: 40px 0;
  margin-bottom: 40px;
  background-color: var(--card-bg, #111111);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-contact__process-step {
  text-align: center;
  padding: 20px;
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  background-color: var(--bg-primary, #0A0A0A);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-contact__process-icon {
  width: 100%;
  max-width: 150px; /* Ensure images are not too small */
  height: auto;
  object-fit: contain;
  margin: 0 auto 15px auto;
  border-radius: 5px;
}

.page-contact__process-title {
  font-size: 1.2em;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 10px;
}

.page-contact__process-step p {
  color: var(--text-main, #FFF6D6);
  font-size: 0.9em;
}

/* Issues Section */
.page-contact__issues-section {
  padding: 40px 0;
  margin-bottom: 40px;
}

.page-contact__issues-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 30px auto 0 auto;
}

.page-contact__issues-list li {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  color: var(--text-main, #FFF6D6);
  font-size: 1.05em;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-contact__list-icon {
  color: var(--primary-color, #F2C14E);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
  line-height: 1;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 40px 0;
  margin-bottom: 40px;
  background-color: var(--card-bg, #111111);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 8px;
  background-color: var(--bg-primary, #0A0A0A);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  color: var(--primary-color, #F2C14E);
  font-size: 1.1em;
  list-style: none; /* For details/summary */
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  padding: 0 20px 15px 20px;
  color: var(--text-main, #FFF6D6);
  font-size: 1em;
  line-height: 1.5;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 40px 0;
  text-align: center;
}

.page-contact__commitment-section p {
  color: var(--text-main, #FFF6D6);
  max-width: 900px;
  margin: 0 auto 15px auto;
  font-size: 1.05em;
}

.page-contact__commitment-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 20px auto 30px auto;
}

.page-contact__commitment-list li {
  color: var(--text-main, #FFF6D6);
  font-size: 1.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-contact__commitment-list .page-contact__list-icon {
  font-size: 1.3em;
  margin-right: 10px;
}

/* General image and container responsiveness */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__section,
.page-contact__card,
.page-contact__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-contact__container {
    padding: 15px;
  }

  /* Hero Section */
  .page-contact__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    margin-bottom: 20px;
  }

  .page-contact__hero-content {
    margin-top: -60px; /* Adjust overlap for mobile */
    padding: 15px;
  }

  .page-contact__main-title {
    font-size: 1.8em;
  }

  .page-contact__subtitle {
    font-size: 1em;
  }

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

  /* Buttons */
  .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;
    padding-right: 15px;
  }

  .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-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  /* Intro Section */
  .page-contact__intro-section,
  .page-contact__channels-section,
  .page-contact__process-section,
  .page-contact__issues-section,
  .page-contact__faq-section,
  .page-contact__commitment-section {
    padding: 20px 0;
    margin-bottom: 20px;
  }

  .page-contact__intro-section p,
  .page-contact__commitment-section p {
    font-size: 0.95em;
  }

  /* Channels Grid */
  .page-contact__channels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Process Grid */
  .page-contact__process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__process-icon {
    max-width: 100px;
  }

  /* Issues List */
  .page-contact__issues-list li {
    font-size: 0.95em;
    padding: 12px 15px;
  }

  /* FAQ List */
  .page-contact__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-contact__faq-answer {
    font-size: 0.95em;
    padding: 0 15px 12px 15px;
  }

  /* General image responsiveness for all images within .page-contact */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover; /* Ensure images fill their space */
  }

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

/* Placeholder styles for required modules in CSS, even if not explicitly used on this page */
/* These are from "首页模块3-6必出CSS模板" but adapted for contact page context. */
/* Note: For a contact page, these sections are usually not present. I'll include minimal, non-disruptive definitions. */

/* Module 3: Games Row (not on contact page, but include placeholder CSS) */
.page-contact__row-games {
  background-color: var(--bg-primary, #0A0A0A);
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
  display: none; /* Hide if not applicable */
}
.page-contact__games-title {
  color: var(--text-main, #FFF6D6);
  text-align: center;
  display: none; /* Hide if not applicable */
}
.page-contact__slider-wrapper {
  overflow: hidden;
  display: none; /* Hide if not applicable */
}
.page-contact__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  display: none; /* Hide if not applicable */
}
.page-contact__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  display: none; /* Hide if not applicable */
}

/* Module 4: Brand Banners / Gameshow (not on contact page, but include placeholder CSS) */
.page-contact__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  display: none; /* Hide if not applicable */
}
.page-contact__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
  display: none; /* Hide if not applicable */
}

/* Module 5: Blog Masonry/Slider (not on contact page, but include placeholder CSS for completeness) */
.page-contact__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  display: none; /* Hide if not applicable */
}
.page-contact__blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  display: none; /* Hide if not applicable */
}
.page-contact__btn-outline {
  margin-top: auto;
  display: none; /* Hide if not applicable */
}
.page-contact__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  display: none; /* Hide if not applicable */
}
.page-contact__blog-slide {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  display: none; /* Hide if not applicable */
}

/* Mobile specific rules for placeholder modules (required by "必写清单") */
@media (max-width: 768px) {
  /* Placeholder for Games Row */
  .page-contact__games-title {
    font-size: 1.5em; /* Example mobile font size */
  }
  .page-contact__slider-track {
    flex-wrap: nowrap; /* Ensure horizontal scroll if present */
  }
  .page-contact__game-slide {
    flex: 0 0 160px; /* Smaller slide width */
    max-width: 160px;
  }

  /* Placeholder for Brand Banners */
  .page-contact__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns on mobile */
  }
  .page-contact__banner-item img {
     /* Smaller image size */
  }

  /* Placeholder for Blog Masonry/Slider */
  .page-contact__blog-masonry {
    grid-template-columns: 1fr; /* Stack blog cards vertically */
  }
  .page-contact__blog-slide {
    flex: 0 0 100%; /* Full width for blog slides */
    max-width: 100%;
  }
}