/* style/contact.css */

/* Custom CSS Variables for Contact Page */
:root {
  --primary-color: #26A9E0; /* 淡蓝色 */
  --secondary-color: #FFFFFF; /* 白色 */
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login-color: #EA7C07; /* 登录按钮颜色 */
  --background-white: #FFFFFF; /* 背景色 */
  --color-black: #000000; /* 黑色 */
}

/* Base Styles for the Page Content */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: var(--background-white); /* Consistent with body background */
}

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

.page-contact__section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact__paragraph {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
  line-height: 1.8;
}

.page-contact__note {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
  text-align: center;
  margin-top: 30px;
}

/* Color Contrast Specifics */
.page-contact__light-bg {
  background-color: var(--background-white);
  color: var(--text-dark);
  padding: 60px 0;
}

.page-contact__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

.page-contact__dark-bg .page-contact__section-title {
  color: var(--text-light);
}

.page-contact__dark-bg .page-contact__paragraph {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient background */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above any background elements */
}

.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: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-contact__hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--button-login-color); /* Use specific login color */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to mobile */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button:hover {
  background: #c76706; /* Darken on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-contact__intro-section {
  padding: 80px 0;
}

/* Channels Section */
.page-contact__channels-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-contact__channel-card {
  background: var(--text-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__channel-card img {
  
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: contain;
}

.page-contact__channel-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-contact__channel-description {
  font-size: 1rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button adapts to mobile */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* When to Contact Section */
.page-contact__when-to-contact-section {
  padding: 80px 0;
}

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

.page-contact__reason-card {
  background: var(--background-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid var(--primary-color);
}

.page-contact__reason-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-contact__reason-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-contact__reason-description {
  font-size: 1rem;
  color: #555;
}

/* Process Section */
.page-contact__process-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-contact__process-step {
  background: rgba(255, 255, 255, 0.1); /* Light background for text-light */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: var(--text-light);
}

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

.page-contact__step-icon {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--text-light);
}

.page-contact__step-title {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-contact__step-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}