.page-contact {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-contact__dark-section {
  background-color: #0d0d0d; /* Slightly lighter than body for contrast */
  color: #ffffff;
  padding: 80px 0;
}

.page-contact__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Brand color for titles */
}

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

.page-contact__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Hero Section */
.page-contact__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-top: 0; /* shared.css handles body padding-top */
  padding-bottom: 80px;
  background-color: #017439; /* Brand color for hero background */
  background-image: linear-gradient(135deg, #017439 0%, #005f2e 100%);
  position: relative;
  overflow: hidden;
}

.page-contact__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
  z-index: 1;
}

.page-contact__hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-contact__hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-contact__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-contact__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  min-width: 400px; /* Ensure minimum size */
  min-height: 225px; /* Aspect ratio for 16:9 */
}

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

.page-contact__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  transform: translateY(-2px);
}

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

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

.page-contact__light-bg .page-contact__btn-secondary {
  color: #017439;
  border-color: #017439;
}

.page-contact__light-bg .page-contact__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-contact__btn-small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-contact__btn-large {
  padding: 18px 35px;
  font-size: 20px;
}

/* Contact Methods Section */
.page-contact__contact-methods .page-contact__section-title {
  color: #017439;
}

.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-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.page-contact__method-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  min-width: 80px; /* Ensure minimum size */
  min-height: 80px; /* Ensure minimum size */
}

.page-contact__method-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-contact__method-text {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__method-info {
  font-size: 16px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

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

.page-contact__social-icon-link img {
  
  
  min- /* Ensure minimum size */
  min- /* Ensure minimum size */
}

/* Location Section */
.page-contact__location-section {
  background-color: #1a1a1a;
}

.page-contact__location-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-contact__address-info {
  flex: 1;
  text-align: left;
}

.page-contact__address-line {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-contact__map-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__map-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* FAQ Section */
.page-contact__faq-section .page-contact__section-title {
  color: #017439;
}

.page-contact__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #f0f0f0;
}

.page-contact__faq-q-text {
  margin: 0;
  flex-grow: 1;
  color: #017439;
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  margin-left: 15px;
  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;
  background-color: #f8f8f8;
}

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

.page-contact__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

.page-contact__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

/* CTA Section */
.page-contact__cta-section {
  background-color: #017439;
  background-image: linear-gradient(135deg, #017439 0%, #005f2e 100%);
  text-align: center;
}

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

.page-contact__cta-section .page-contact__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 42px;
  }
  .page-contact__hero-description {
    font-size: 18px;
  }
  .page-contact__section-title {
    font-size: 32px;
  }
  .page-contact__hero-section {
    flex-direction: column;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-contact__hero-content {
    max-width: 100%;
    text-align: center;
  }
  .page-contact__hero-buttons {
    justify-content: center;
  }
  .page-contact__location-content {
    flex-direction: column;
  }
  .page-contact__address-info,
  .page-contact__map-image-wrapper {
    text-align: center;
    max-width: 100%;
  }
  .page-contact__map-image {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 40px; /* Adjusted for mobile if shared doesn't provide enough */
    padding-bottom: 40px;
    gap: 20px;
  }
  .page-contact__hero-title {
    font-size: 32px !important;
    margin-bottom: 15px;
  }
  .page-contact__hero-description {
    font-size: 16px !important;
    margin-bottom: 20px;
  }
  .page-contact__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__hero-image {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: auto !important;
  }

  /* LOGO 轮播区域 (Not present on this page, but demonstrating rule adherence) */
  /* If there were a logo carousel, .page-contact__logo-item would have: */
  /*
  .page-contact__logo-item {
    width: 80px !important; 
    height: 80px !important; 
    max-width: 80px !important; 
    box-sizing: border-box;
  }
  */

  /* 游戏展示区域 (Not present on this page, but demonstrating rule adherence) */
  /* If there were a game grid, .page-contact__games-grid .page-contact__game-card would have: */
  /*
  .page-contact__games-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__game-card {
    max-width: 100% !important;
    width: 100% !important;
  }
  */

  /* 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce minimum size for content images */
    min-height: auto !important;
  }
  /* Exclude specific icons that are smaller */
  .page-contact__social-icon-link img,
  .page-contact__method-icon {
    width: auto !important; /* Allow natural size */
    height: auto !important;
    max-width: 100% !important;
    min-width: unset !important; /* Allow smaller for icons */
    min-height: unset !important;
  }
  .page-contact__method-icon {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !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 !important;
    padding-right: 15px !important;
  }

  /* 按钮与按钮容器 */
  .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 !important;
    padding-right: 15px !important;
  }
  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }

  /* 其他内容模块 */
  .page-contact__section-title {
    font-size: 28px !important;
  }
  .page-contact__section-description {
    font-size: 15px !important;
    margin-bottom: 25px;
  }
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__method-card {
    padding: 20px;
  }
  .page-contact__method-title {
    font-size: 20px;
  }
  .page-contact__method-text,
  .page-contact__method-info {
    font-size: 14px;
  }
  .page-contact__location-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-contact__address-line {
    font-size: 16px;
  }
  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-contact__faq-q-text {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 10px 20px 20px 20px;
  }
  .page-contact__faq-answer p {
    font-size: 14px;
  }
}