/* style/contact.css */
/* 智能颜色对比 độ保障系统 - body背景色 #0A0A0A (dark), 文字应为浅色 #FFF6D6 */
.page-contact {
  color: #FFF6D6; /* Text Main */
  background-color: transparent; /* body handles the main background */
}

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

/* HERO主图区域样式 */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* 🚨 页头由 shared 的 body { padding-top: var(--header-offset); } 承担；此处仅用小额顶距，禁止 var(--header-offset) 以免双倍空白 */
  padding-top: 10px;
  padding-bottom: 60px; /* Add some bottom padding */
}

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width */
}

.page-contact__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #3A2A12; /* Border color */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-contact__hero-content h1 {
  /* 🚨 H1 不写死 font-size */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
}

.page-contact__hero-content p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text on bright button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box; /* Button responsive */
  white-space: normal; /* Button responsive */
  word-wrap: break-word; /* Button responsive */
}

.page-contact__cta-button:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%); /* Slightly lighter hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section {
  padding: 80px 0;
}

.page-contact__dark-section {
  background-color: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
}

.page-contact__title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF6D6; /* Text Main */
}

.page-contact__description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #FFF6D6; /* Text Main */
}

/* Info Grid Section */
.page-contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__card {
  background: #111111; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid #3A2A12; /* Border color */
}

.page-contact__card:hover {
  transform: translateY(-5px);
}

.page-contact__card img {
  width: 100%;
   /* Adjust max-width for card images */
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 5px;
  object-fit: cover;
}

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

.page-contact__card p {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #FFF6D6; /* Text Main */
}

.page-contact__link {
  color: #FFD36B; /* Auxiliary Color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__link:hover {
  color: #F2C14E; /* Primary Color */
  text-decoration: underline;
}

/* Contact Form Section */
.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background: #111111; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border color */
}

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

.page-contact__label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #FFF6D6; /* Text Main */
}

.page-contact__input,
.page-contact__textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent input background */
  color: #FFF6D6; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__input::placeholder,
.page-contact__textarea::placeholder {
  color: rgba(255, 246, 214, 0.6); /* Lighter placeholder text */
}

.page-contact__input:focus,
.page-contact__textarea:focus {
  outline: none;
  border-color: #F2C14E; /* Primary Color on focus */
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.3);
}

.page-contact__textarea {
  resize: vertical;
}

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text on bright button */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box; /* Button responsive */
  white-space: normal; /* Button responsive */
  word-wrap: break-word; /* Button responsive */
}

.page-contact__submit-button:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  transform: translateY(-2px);
}

/* FAQ Section */
.page-contact__faq-list {
  margin-top: 40px;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #111111; /* Card BG */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF6D6; /* Text Main */
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
  display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: rgba(255, 255, 255, 0.05); /* Lighter hover for dark background */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Primary color for question */
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Auxiliary color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.2); /* Slightly darker background for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6; /* Text Main */
}

.page-contact__faq-answer p {
    margin: 0;
    line-height: 1.6;
}

.page-contact__cta-block {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #3A2A12; /* Border color */
}

.page-contact__cta-block p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFF6D6; /* Text Main */
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact__hero-image img {
    border-radius: 4px;
  }
  
  .page-contact__hero-content h1 {
    font-size: 2em; /* Adjust for mobile */
  }

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

  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important; /* Button responsive */
    width: 100% !important; /* Button responsive */
    box-sizing: border-box !important; /* Button responsive */
    white-space: normal !important; /* Button responsive */
    word-wrap: break-word !important; /* Button responsive */
  }

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section {
    padding: 40px 0;
  }

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

  .page-contact__title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

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

  .page-contact__card {
    padding: 20px;
  }

  .page-contact__form {
    padding: 30px 20px;
  }

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

  .page-contact__input,
  .page-contact__textarea {
    padding: 12px;
  }

  .page-contact__submit-button {
    font-size: 1em;
    padding: 12px 15px;
    max-width: 100% !important; /* Button responsive */
    width: 100% !important; /* Button responsive */
    box-sizing: border-box !important; /* Button responsive */
    white-space: normal !important; /* Button responsive */
    word-wrap: break-word !important; /* Button responsive */
  }

  details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
  .page-contact__faq-qtext {
    font-size: 15px;
    line-height: 1.4;
  }
  .page-contact__faq-answer { padding: 0 15px 15px; }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  /* Image responsiveness for all img tags */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Ensure any container with images or buttons also respects mobile width */
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-contact__info-section .page-contact__container,
.page-contact__form-section .page-contact__container,
.page-contact__faq-section .page-contact__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Specific button responsive rule for multiple buttons in a row (if any) */
/* Example if there were multiple buttons in a div */
.page-contact__button-group { /* Assuming a container for multiple buttons */
    display: flex;
    flex-wrap: wrap; /* Allows buttons to wrap */
    gap: 15px; /* Spacing between buttons */
    justify-content: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .page-contact__button-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__button-group .page-contact__cta-button {
        width: 100% !important;
    }
}