/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: #F4F7FB;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-contact__hero-content {
  padding: 20px;
  max-width: 800px;
}

.page-contact__main-title {
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.1em;
  color: #1F2D3D;
}

.page-contact__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-contact__section-title--light {
  color: #ffffff;
}

.page-contact__section-description {
  font-size: 1.05em;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__section-description--light {
  color: #f0f0f0;
}

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

.page-contact__info-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1F2D3D;
}

.page-contact__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #2F6BFF; /* Primary Color */
  margin-bottom: 15px;
}

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

.page-contact__card-phone {
  font-size: 1.2em;
  font-weight: 600;
  color: #1F2D3D;
  margin-top: 15px;
}

.page-contact__phone-number {
  color: #2F6BFF;
}

.page-contact__social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  justify-content: center;
}

.page-contact__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  background-color: #6FA3FF; /* Auxiliary Color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.page-contact__social-link:hover {
  background-color: #2F6BFF; /* Primary Color */
}

.page-contact__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #ffffff;
  color: #2F6BFF; /* Primary Color */
  border: 2px solid #2F6BFF; /* Border color */
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-secondary:hover {
  background-color: #2F6BFF;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-contact__form-section {
  background-color: #2F6BFF; /* Primary Color */
  padding: 60px 20px;
  color: #ffffff;
}

.page-contact__contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #1F2D3D;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-contact__btn-submit {
  display: block;
  width: 100%;
  padding: 15px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-contact__why-contact-section {
  padding: 60px 20px;
  background-color: #F4F7FB;
}

.page-contact__why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-contact__why-item {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1F2D3D;
}

.page-contact__why-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-contact__why-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #2F6BFF; /* Primary Color */
  margin-bottom: 10px;
}

.page-contact__why-text {
  font-size: 0.95em;
  color: #1F2D3D;
}

.page-contact__faq-section {
  padding: 60px 20px;
  background-color: #F4F7FB;
}

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

.page-contact__faq-item {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  color: #1F2D3D;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: #1F2D3D;
  list-style: none; /* Hide default marker */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit */
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: 500;
  color: #2F6BFF; /* Primary Color */
  transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #1F2D3D;
}

.page-contact__latest-news-section {
  padding: 60px 20px;
  background-color: #F4F7FB;
}

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

.page-contact__blog-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #1F2D3D;
  height: 100%;
}

.page-contact__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-contact__blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.page-contact__blog-card-title {
  font-size: 1.25em;
  font-weight: 600;
  color: #2F6BFF; /* Primary Color */
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

.page-contact__blog-card-meta {
  font-size: 0.9em;
  color: #666;
  padding: 0 20px;
  margin-bottom: 10px;
}

.page-contact__blog-card-excerpt {
  font-size: 0.95em;
  color: #1F2D3D;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #2F6BFF; /* Primary Color */
  color: #2F6BFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  margin: 0 20px 20px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: auto; /* Push to bottom */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-outline:hover {
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-contact__cta-button-container {
  text-align: center;
  margin-top: 40px;
}

.page-contact__cta-section {
  background-color: #2F6BFF; /* Primary Color */
  padding: 60px 20px;
  text-align: center;
}

.page-contact__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- CSS for required homepage-only modules (empty/generic for contact page) --- */
/* This ensures the media queries are present as per instructions without adding non-existent content */
.page-contact__row-games, .page-contact__row-sport, .page-contact__row-coop {
  /* These elements are not expected on contact page HTML. */
  /* Styles here are minimal to satisfy the requirement if they were present. */
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.page-contact__slider-wrapper {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-contact__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.page-contact__game-slide {
  flex: 0 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); /* Desktop default for 6 columns */
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-contact__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* blog-slider is not used in HTML, but its media query must be present */
.page-contact__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.page-contact__blog-slide {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  box-sizing: border-box;
}

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

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

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

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

  .page-contact__why-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-contact__blog-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Generic responsive styles for potential elements (even if not on this page) */
  .page-contact__row-games, .page-contact__row-sport, .page-contact__row-coop {
    padding: 30px 15px;
  }

  .page-contact__banners-top-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* Adjusted for tablet */
    gap: 10px;
  }

  .page-contact__blog-slide {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

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

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

  /* HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

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

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

  .page-contact__form-section {
    padding: 40px 15px;
  }

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

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

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

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

  /* 博客卡片区 */
  .page-contact__blog-masonry {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__blog-card-image {
    height: 180px;
  }

  .page-contact__blog-card-title {
    font-size: 1.15em;
  }

  /* 通用图片与容器 */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"],
  .page-contact__btn-submit,
  .page-contact__btn-outline {
    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-wrap: wrap !important;
    gap: 15px;
    flex-direction: column; /* Stack buttons vertically */
  }

  /* --- Mobile-specific rules for homepage-only modules (empty/generic for contact page) --- */
  /* These blocks are included as per instructions, even if the elements are not in HTML */
  .page-contact__row-games, .page-contact__row-sport, .page-contact__row-coop {
    padding: 20px 0;
  }

  .page-contact__slider-wrapper {
    padding: 0;
  }

  .page-contact__slider-track {
    transform: none !important; /* Reset transform for mobile if any */
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .page-contact__game-slide {
    flex: 0 0 160px;
    max-width: 160px;
    scroll-snap-align: start;
  }

  .page-contact__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* Adjusted for mobile to 3 columns */
    gap: 8px;
  }

  .page-contact__banner-item img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* blog-slider (if present) */
  .page-contact__blog-slider-track {
    transform: none !important; /* Reset transform for mobile if any */
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .page-contact__blog-slide {
    flex: 0 0 calc(100% - 30px); /* Full width with padding/gap */
    max-width: calc(100% - 30px);
    scroll-snap-align: start;
  }
}