/* style/contact.css */

/* Base styles */
.page-contact {
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* body background is handled by shared.css */
}

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

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-contact__section-intro {
  font-size: 18px;
  line-height: 1.6;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  margin-top: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-contact__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

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

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.page-contact__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700; /* Gold */
  margin-bottom: 15px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  max-width: 900px;
}

.page-contact__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  max-width: 700px;
  line-height: 1.5;
}

/* Info Section */
.page-contact__info-section {
  background-color: rgba(139, 0, 0, 0.9); /* Dark Red */
  padding: 80px 0;
}

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

.page-contact__info-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__info-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__info-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.page-contact__info-icon img {
  
  
  object-fit: contain;
}

.page-contact__info-card-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-contact__info-card-text {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-contact__info-card address {
  font-style: normal;
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.6;
}

.page-contact__btn-link {
  display: inline-block;
  background-color: #FFD700; /* Gold */
  color: #000000; /* Black text for contrast */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__btn-link:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* Form Section */
.page-contact__form-section {
  background-color: #0d0d0d; /* Dark background */
  padding: 80px 0;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark */
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFD700;
  background-color: rgba(0, 0, 0, 0.7);
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__btn-submit {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #FFD700; /* Gold */
  color: #000000; /* Black text for contrast */
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-submit:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none;
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect, or change to '-' */
  color: #8B0000;
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to show all content */
  padding: 20px 25px !important;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.03);
}

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

/* Social Media Section */
.page-contact__social-media-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  padding: 80px 0;
  text-align: center;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-contact__social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-link:hover {
  color: #FFD700;
  transform: translateY(-5px);
}

.page-contact__social-link img {
  
  
  margin-bottom: 10px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease;
}

.page-contact__social-link:hover img {
  filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.5));
}

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 40px;
  }

  .page-contact__hero-description {
    font-size: 18px;
  }

  .page-contact__section-title {
    font-size: 32px;
  }

  .page-contact__section-intro {
    font-size: 16px;
  }

  .page-contact__info-card-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-contact__hero-section {
    min-height: 350px;
    padding-top: 0 !important; /* Ensure no double padding if shared.css adds it to body */
  }
  .page-contact__hero-overlay {
    padding: 15px;
  }
  .page-contact__hero-title {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .page-contact__hero-description {
    font-size: 15px;
    max-width: 90%;
  }

  /* LOGO 轮播区域 (Not present on this page, but keeping placeholder in mind if it were) */
  /* .page-contact__logo-carousel-section { padding: 20px 15px; } */
  /* .page-contact__logo-carousel { gap: 12px; } */
  /* .page-contact__logo-item { width: 80px !important; height: 80px !important; max-width: 80px !important; } */

  /* 游戏展示区域 (Not present on this page, but keeping placeholder in mind if it were) */
  /* .page-contact__games-section { padding: 40px 15px; } */
  /* .page-contact__games-layout { grid-template-columns: 1fr; gap: 20px; } */
  /* .page-contact__featured-game-title { font-size: 20px; } */
  /* .page-contact__featured-game-image { height: 300px; } */
  /* .page-contact__games-tabs { gap: 15px; } */
  /* .page-contact__games-tab { font-size: 16px; } */
  /* .page-contact__games-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } */
  /* .page-contact__game-card-image { height: 150px; } */
  /* .page-contact__game-card-title { font-size: 13px; margin: 8px 0 0 0; padding: 0 3px; } */

  /* 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__container {
    padding: 0 15px;
  }
  .page-contact__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-contact__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Info Section */
  .page-contact__info-section {
    padding: 50px 0;
  }
  .page-contact__info-card {
    padding: 25px;
  }
  .page-contact__info-card-title {
    font-size: 20px;
  }
  .page-contact__info-card-text, .page-contact__info-card address {
    font-size: 14px;
  }
  .page-contact__btn-link {
    padding: 10px 20px;
    font-size: 15px;
  }

  /* Form Section */
  .page-contact__form-section {
    padding: 50px 0;
  }
  .page-contact__contact-form {
    padding: 30px 20px;
  }
  .page-contact__form-group {
    margin-bottom: 20px;
  }
  .page-contact__form-label {
    font-size: 15px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }
  /* 按钮与按钮容器 */
  .page-contact__btn-submit {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* FAQ Section */
  .page-contact__faq-section {
    padding: 50px 0;
  }
  .page-contact__faq-item {
    margin-bottom: 10px;
  }
  .page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-question h3 {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }
  .page-contact__faq-answer p {
    font-size: 15px;
  }

  /* Social Media Section */
  .page-contact__social-media-section {
    padding: 50px 0;
  }
  .page-contact__social-links {
    gap: 20px;
  }
  .page-contact__social-link img {
    
    
    margin-bottom: 8px;
  }
  .page-contact__social-link span {
    font-size: 14px;
  }
}