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

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

.page-contact__hero-section {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-contact__hero-content-wrap {
  padding: 40px 0;
  text-align: center;
  background-color: #111111; /* Card BG */
  border-bottom: 2px solid #3A2A12; /* Border */
}

.page-contact__main-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2C14E; /* Primary Color */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6;
}

.page-contact__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-contact__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  text-align: center;
  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%); /* Button Gradient */
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-contact__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-contact__btn--secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Primary Color */
  border: 2px solid #F2C14E;
}

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

.page-contact__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-contact__section-title {
  font-size: 2em;
  color: #F2C14E; /* Primary Color */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.3;
}

.page-contact__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #FFF6D6;
}

.page-contact__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-contact__list-item {
  background-color: #111111; /* Card BG */
  border-left: 4px solid #F2C14E; /* Primary Color */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #FFF6D6;
  font-size: 1em;
}

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

.page-contact__channel-card, .page-contact__topic-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #3A2A12;
}

.page-contact__channel-image, .page-contact__topic-image, .page-contact__commitment-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-contact__channel-title, .page-contact__topic-title {
  font-size: 1.4em;
  color: #F2C14E; /* Primary Color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__channel-description, .page-contact__phone-number, .page-contact__working-hours, .page-contact__topic-list li {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 15px;
  text-align: justify;
}

.page-contact__phone-link {
  color: #FFD36B; /* Glow */
  text-decoration: none;
  font-weight: bold;
}

.page-contact__phone-link:hover {
  text-decoration: underline;
}

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

.page-contact__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  color: #111111;
  background-color: #F2C14E; /* Primary Color */
  transition: background-color 0.3s ease;
}

.page-contact__social-btn--facebook {
  background-color: #3b5998;
  color: #ffffff;
}

.page-contact__social-btn--telegram {
  background-color: #0088cc;
  color: #ffffff;
}

.page-contact__social-btn:hover {
  opacity: 0.9;
}

.page-contact__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.page-contact__form-group {
  text-align: left;
}

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border */
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6;
  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__topic-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  text-align: left;
}

.page-contact__topic-list li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  color: #FFF6D6;
  font-size: 0.9em;
}

.page-contact__topic-list li::before {
  content: '✔';
  color: #FFD36B; /* Glow */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-contact__faq-list {
  margin-top: 40px;
}

.page-contact__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #1a1a1a;
  color: #F2C14E; /* Primary Color */
  font-weight: bold;
  font-size: 1.1em;
  position: relative;
  list-style: none;
}

.page-contact__faq-question::-webkit-details-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: 15px 25px 20px;
  color: #FFF6D6;
  font-size: 0.95em;
  border-top: 1px solid #3A2A12;
  text-align: justify;
}

.page-contact__faq-answer p {
  margin: 0;
  color: #FFF6D6;
}

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

.page-contact__commitment-image {
  margin: 0 auto 30px auto;
}

.page-contact__cta-buttons--bottom {
  margin-top: 50px;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 2em;
  }

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

  .page-contact__hero-content-wrap {
    padding: 30px 0;
  }

  .page-contact__section {
    padding: 40px 0;
  }

  .page-contact__btn {
    padding: 10px 20px;
    font-size: 0.95em;
  }
}

/* Mobile Specific */
@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-contact__hero-section {
    margin-bottom: 20px;
  }
  .page-contact__hero-content-wrap {
    padding: 20px 0;
    padding-top: 10px !important; /* Specific for top section padding */
  }
  .page-contact__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-contact__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 90%;
    padding: 0 15px;
  }
  .page-contact__btn {
    width: 100% !important;
    max-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__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: 10px;
  }

  /* 2. 单栏长文容器 */
  .page-contact__container {
    padding: 0 15px;
  }
  .page-contact__section {
    padding: 30px 0;
  }
  .page-contact__section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  .page-contact__text-block {
    font-size: 0.9em;
  }
  .page-contact__list-item {
    padding: 12px 15px;
    font-size: 0.9em;
  }

  /* 3. 通用图片与 figure */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__hero-image-wrapper {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
  }
  .page-contact__channel-card, .page-contact__topic-card {
    padding: 20px;
  }

  /* 4. 按钮与按钮容器 (already covered in section 1 and 2, ensuring general application) */
  /* Specifically for social buttons to stack */
  .page-contact__social-links {
    flex-direction: column;
    gap: 10px;
  }
  .page-contact__social-btn {
    width: 100%;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-contact__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    font-size: 0.9em;
    padding: 10px 20px 15px;
  }
  .page-contact__topic-list li {
    font-size: 0.85em;
  }
  .page-contact__form-input, .page-contact__form-textarea {
    font-size: 0.9em;
    padding: 10px;
  }
}

/* Ensure contrast for text on various backgrounds */
.page-contact {
  color: #FFF6D6; /* Default text color for dark body background */
}
.page-contact__card, .page-contact__section, .page-contact__box {
  color: #FFF6D6; /* Ensure light text on dark card/section backgrounds */
}
.page-contact__dark-bg {
  color: #ffffff; /* Explicitly white text for dark backgrounds */
}
.page-contact__light-bg {
  color: #333333; /* Explicitly dark text for light backgrounds (not used here due to dark theme) */
}
.page-contact__medium-bg {
  color: #000000; /* Default dark text for medium backgrounds (not used here due to dark theme) */
}

/* Ensure buttons have readable text */
.page-contact__btn-primary {
  color: #111111; /* Dark text on bright button gradient */
}
.page-contact__btn--small {
  color: #111111; /* Dark text on bright button gradient */
}
.page-contact__btn--secondary {
  color: #F2C14E; /* Primary color text on dark background */
}
.page-contact__social-btn {
  color: #111111; /* Default dark text for social buttons */
}
.page-contact__social-btn--facebook {
  color: #ffffff; /* White text on Facebook blue */
}
.page-contact__social-btn--telegram {
  color: #ffffff; /* White text on Telegram blue */
}