/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: var(--bg-color, #B71C1C); /* Fallback to custom background if shared var is not set */
}

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

.page-contact__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #F4D34D; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__section-description {
  font-size: clamp(16px, 2vw, 19px);
  color: #FFF5E1; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-color: #7A0E0E; /* Deep Red */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.7;
}

.page-contact__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  text-align: center;
  z-index: 1;
}

.page-contact__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #FFD86A; /* Brighter Gold for H1 */
  margin-bottom: 15px;
  line-height: 1.1;
}

.page-contact__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for button text for contrast */
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__info-section,
.page-contact__support-channels-section,
.page-contact__cta-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
}

.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description {
  color: #F4D34D; /* Gold */
}

.page-contact__dark-section .page-contact__section-description {
  color: #FFF5E1; /* Text Main */
}

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

.page-contact__method-card {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border */
}

.page-contact__method-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFD86A; /* Brighter Gold */
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 16px;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 25px;
}

.page-contact__method-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for button text for contrast */
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__method-button:hover {
  transform: translateY(-2px);
}

.page-contact__form-section {
  padding: 60px 0;
  background-color: #7A0E0E; /* Deep Red */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background-color: #D32F2F; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Border */
}

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

.page-contact__form-label {
  display: block;
  font-size: 18px;
  color: #F4D34D; /* Gold */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #F2B544; /* Border */
  border-radius: 5px;
  background-color: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
  font-size: 16px;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 245, 225, 0.7); /* Lighter placeholder */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #FFCC66; /* Glow */
  box-shadow: 0 0 8px rgba(255, 204, 102, 0.5);
}

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for button text for contrast */
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__article-body {
  max-width: 900px;
  margin: 40px auto;
  background-color: rgba(211, 47, 47, 0.8); /* Slightly transparent Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border */
  color: #FFF5E1; /* Text Main */
}

.page-contact__article-body h3 {
  font-size: 26px;
  color: #FFD86A; /* Brighter Gold */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-contact__article-body p {
  font-size: 17px;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-contact__article-body ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 17px;
}

.page-contact__article-body li {
  margin-bottom: 8px;
}

.page-contact__article-body strong {
  color: #FFCC66; /* Glow */
}

.page-contact__article-figure {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

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: #FFD86A; /* Brighter Gold */
}

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: #C91F17; /* Main color */
}

.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFCC66; /* Glow */
  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(255, 255, 255, 0.1); /* Lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1; /* Text Main */
  font-size: 16px;
}

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

.page-contact__faq-answer a {
  color: #FFD86A; /* Brighter Gold for links */
  text-decoration: underline;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    padding: 30px 20px;
  }
  .page-contact__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }
  .page-contact__hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
  }
  .page-contact__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }
  .page-contact__section-description {
    font-size: clamp(15px, 1.8vw, 18px);
  }
  .page-contact__contact-methods {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-contact__article-body h3 {
    font-size: 24px;
  }
  .page-contact__article-body p,
  .page-contact__article-body ul li {
    font-size: 16px;
  }
  .page-contact__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 849px) {
  .page-contact__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100%; /* Ensure image takes full width */
    height: auto; /* Allow height to adjust */
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 10px; /* Small top padding */
    min-height: 400px;
  }
  .page-contact__hero-image-wrapper {
    max-height: 400px;
  }
  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
  .page-contact__hero-content {
    padding: 20px 15px;
  }
  .page-contact__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-contact__hero-description {
    font-size: clamp(15px, 3.5vw, 18px);
    margin-bottom: 20px;
  }
  .page-contact__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 16px;
  }

  /* 产品展示图区域 (not present on contact page, but general rule for future) */
  /* .page-contact__products-section { overflow-x: hidden !important; } */
  /* .page-contact__products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; } */

  /* 装饰主标题 + 长文 SEO 区 */
  .page-contact__section-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    font-size: clamp(14px, 3.5vw, 16px);
    margin-bottom: 30px;
  }
  .page-contact__article-body {
    padding: 20px;
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-contact__article-body h3 {
    font-size: 22px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .page-contact__article-body p,
  .page-contact__article-body ul li {
    font-size: 15px;
  }
  .page-contact__article-figure {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px 0;
  }

  /* 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-contact__cta-button,
  .page-contact__method-button,
  .page-contact__submit-button,
  .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;
    padding-right: 15px;
  }
  .page-contact__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  /* FAQ */
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-qtext {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }
  .page-contact__contact-form {
    padding: 30px 20px;
  }
  .page-contact__form-label {
    font-size: 16px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
    font-size: 15px;
  }
  .page-contact__submit-button {
    font-size: 18px;
    padding: 12px;
  }
}