.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

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

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as shared.css handles body padding */
  padding-bottom: 80px;
  overflow: hidden;
  color: #FFF1E8;
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly transparent background for readability */
  border-radius: 10px;
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  margin-bottom: 20px;
  color: #F3C54D; /* Gold */
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-contact__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F3C54D; /* Gold */
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #FFF1E8;
}

.page-contact__methods-section,
.page-contact__commitment-section,
.page-contact__cta-section {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

.page-contact__dark-section {
  background-color: #2A1212; /* Card B G */
}

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

.page-contact__card {
  background-color: #2A1212; /* Card B G */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF1E8;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: 100%; /* Ensure cards are same height */
}

.page-contact__card-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-contact__card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F3C54D; /* Gold */
}

.page-contact__card-text {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__contact-form {
  width: 100%;
  margin-top: 20px;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 5px;
  background-color: #140C0C; /* Background */
  color: #FFF1E8;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 241, 232, 0.6);
}

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

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

.page-contact__social-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.page-contact__social-btn:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
}

.page-contact__faq-section {
  padding: 60px 0;
}

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

.page-contact__faq-item {
  background-color: #2A1212; /* Card B G */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF1E8;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  background-color: #2A1212; /* Card B G */
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default details marker */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

.page-contact__faq-question:hover {
  background-color: #C61F1F; /* Main Color */
}

.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 25px 25px 25px;
  font-size: 1em;
  color: #FFF1E8;
  line-height: 1.6;
}

.page-contact__faq-answer p {
  margin-bottom: 10px;
}

.page-contact__faq-answer a {
  color: #FFB04A; /* Lighter gold for links */
  text-decoration: underline;
}

/* Buttons */
.page-contact__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

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

/* Placeholder for sections not present on contact page, but required for CSS output */
.page-contact__home-content { /* Placeholder for 'long text golden frame' */
  border: 1px solid transparent; /* Adapted to be subtle */
  border-radius: 10px;
  padding: 40px;
  margin: 40px auto;
  max-width: 1000px;
  background-color: #2A1212; /* Card B G */
  color: #FFF1E8;
}

.page-contact__home-content h2 {
  color: #F3C54D;
}

.page-contact__slider-wrapper { /* Placeholder for 'game carousel' */
  overflow: hidden;
  padding: 40px 0;
  background-color: #140C0C;
}

.page-contact__slider-track { /* Placeholder for 'game carousel' */
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}

.page-contact__game-slide { /* Placeholder for 'game carousel' */
  flex: 0 0 auto;
  width: 250px;
  height: 180px;
  background-color: #2A1212;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF1E8;
  font-size: 1.2em;
}

.page-contact__banners-top-wrapper { /* Placeholder for 'brand grid' */
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #140C0C;
}

.page-contact__banner-item img { /* Placeholder for 'brand grid' */
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  
}

.page-contact__blog-masonry { /* Placeholder for 'blog card area' - adapted for related articles if needed */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 60px 0;
  background-color: #140C0C;
  align-items: stretch;
}

.page-contact__blog-card { /* Placeholder for blog card */
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 20px;
  color: #FFF1E8;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-contact__blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.page-contact__blog-card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-contact__blog-card-text {
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 15px;
}

.page-contact__blog-card-link {
  display: inline-block;
  margin-top: auto;
  color: #FFB04A;
  text-decoration: none;
  font-weight: bold;
}

.page-contact__blog-slider-track { /* Placeholder for blog slider */
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
  padding: 40px 0;
}

.page-contact__blog-slide { /* Placeholder for blog slider */
  flex: 0 0 300px;
  max-width: 300px;
  background-color: #2A1212;
  border-radius: 8px;
  padding: 20px;
  color: #FFF1E8;
}

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

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

  .page-contact__hero-content {
    max-width: 700px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 3.5vw, 3em);
  }

  .page-contact__section-title {
    font-size: clamp(1.6em, 2.5vw, 2.5em);
  }

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

  .page-contact__banners-top-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .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;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 1. HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding, not var(--header-offset) */
    padding-bottom: 60px;
  }

  .page-contact__hero-content {
    padding: 15px;
  }

  .page-contact__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em) !important;
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

  .page-contact__section-title {
    font-size: clamp(1.4em, 5vw, 2em) !important;
  }

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

  /* 2. 长文金框区 (page-contact__home-content) */
  .page-contact__home-content {
    padding: 20px;
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 3. 游戏轮播 (page-contact__slider-wrapper) */
  .page-contact__slider-wrapper {
    padding: 20px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto; /* Allow horizontal scroll for slider */
    -webkit-overflow-scrolling: touch;
  }

  .page-contact__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
  }

  .page-contact__game-slide {
    flex: 0 0 180px;
    max-width: 180px;
    height: 140px;
  }

  /* 4. 合作品牌六宫格 (page-contact__banners-top-wrapper) */
  .page-contact__banners-top-wrapper {
    grid-template-columns: repeat(3, 1fr) !important; /* 3 columns */
    gap: 10px;
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__banner-item img {
     /* Ensure smaller size */
    
  }

  /* 5. 博客卡片区 (page-contact__blog-masonry) */
  .page-contact__blog-masonry {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px;
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* 6. 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  /* 7. 按钮与按钮容器 */
  .page-contact__btn-primary,
  .page-contact__social-btn,
  .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__method-cards,
  .page-contact__social-links {
    flex-direction: column !important;
    gap: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__card {
    padding: 20px;
  }

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

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