/* Base styles for page-contact */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main from custom palette, for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-contact__section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__section-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFF5E1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF5E1;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  color: #FFF5E1;
}

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

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 80px; /* Adjust based on header height, ensures content is below header */
}

.page-contact__main-title {
  font-size: 3.5em;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFCC66; /* Glow */
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-contact__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFF5E1;
}

.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast */
  border: none;
  box-shadow: 0 5px 15px rgba(255, 216, 106, 0.4);
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 216, 106, 0.6);
}

.page-contact__btn-secondary {
  background: #C91F17; /* Main Color */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border */
  box-shadow: 0 5px 15px rgba(201, 31, 23, 0.4);
}

.page-contact__btn-secondary:hover {
  background: #E53935; /* Accent Color */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(201, 31, 23, 0.6);
}

.page-contact__btn-small {
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 6px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border: none;
  box-shadow: 0 3px 10px rgba(255, 216, 106, 0.3);
}

.page-contact__btn-small:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(255, 216, 106, 0.5);
}

/* Contact Methods Section */
.page-contact__contact-methods {
  background-color: #7A0E0E; /* Deep Red for contrast */
}

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

.page-contact__method-card {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-contact__method-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__method-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFCC66; /* Glow */
}

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

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

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #F4D34D; /* Gold */
  color: #7A0E0E; /* Deep Red */
  border-radius: 50%;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-icon:hover {
  background-color: #FFCC66; /* Glow */
  transform: translateY(-2px);
}

/* Location Info Section */
.page-contact__location-info {
  background-color: #B71C1C; /* Background */
  color: #FFF5E1;
}

.page-contact__location-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-contact__address-block {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: left;
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__address-title {
  font-size: 2em;
  color: #FFCC66; /* Glow */
  margin-bottom: 15px;
}

.page-contact__address-text {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.page-contact__map-placeholder {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-contact__note-text {
  margin-top: 40px;
  font-style: italic;
  font-size: 0.95em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #7A0E0E; /* Deep Red for contrast */
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  color: #FFF5E1;
}

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: #FFCC66; /* Glow */
  font-weight: 600;
}

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: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFCC66; /* Glow */
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFF5E1;
  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: #C91F17; /* Main Color */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1;
  font-size: 1em;
}

/* CTA Banner Section */
.page-contact__cta-banner {
  background-color: #B71C1C; /* Background */
  padding: 80px 0;
  color: #FFF5E1;
}

.page-contact__banner-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFCC66; /* Gold */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__banner-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-contact__banner-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    margin-top: 60px;
  }
  .page-contact__main-title {
    font-size: 3em;
  }
  .page-contact__hero-description {
    font-size: 1.1em;
  }
  .page-contact__section-title {
    font-size: 2.5em;
  }
  .page-contact__methods-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-contact__location-details {
    flex-direction: column;
    align-items: center;
  }
  .page-contact__address-block, .page-contact__map-placeholder {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }
  .page-contact__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    position: relative;
    height: auto;
    z-index: -2;
  }
  .page-contact__hero-content {
    margin-top: 0;
    padding: 30px 15px;
    background: rgba(0, 0, 0, 0.6);
  }
  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* General Section */
  .page-contact__section {
    padding: 40px 0;
  }
  .page-contact__section-title {
    font-size: clamp(2em, 8vw, 2.2em);
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__container,
  .page-contact__section,
  .page-contact__methods-grid,
  .page-contact__method-card,
  .page-contact__location-details,
  .page-contact__address-block,
  .page-contact__map-placeholder,
  .page-contact__faq-list,
  .page-contact__cta-banner,
  .page-contact__banner-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__container {
    padding: 0;
  }

  /* 产品展示图区域 (Not applicable for contact page, but template requires generic block) */
  /* If this were a product grid, it would be 2 cols */
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden; /* Ensure no horizontal scroll */
  }

  /* 装饰主标题 + 长文 SEO 区 (General text block styling) */
  .page-contact__address-block,
  .page-contact__note-text,
  .page-contact__faq-list {
    text-align: left;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Buttons */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-small,
  .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__cta-buttons,
  .page-contact__banner-buttons {
    flex-direction: column !important;
    gap: 15px;
  }

  /* FAQ */
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-qtext {
    font-size: 1em;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
  }

  .page-contact__banner-title {
    font-size: clamp(2em, 8vw, 2.2em);
  }
  .page-contact__banner-description {
    font-size: 0.95em;
  }
}