/* style/support.css */

/* Base styles for the support page */
.page-support {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure space above footer */
}

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

/* Hero Section */
.page-support__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile first, then row for desktop */
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Main color gradient */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing for desktop */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-support__hero-content {
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.page-support__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
  z-index: 1;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-support__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #0A0A0A; /* Dark text on light gradient background */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.15rem;
  color: #333333; /* Darker text for readability on light gradient */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__hero-cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #0A0A0A; /* Dark text on button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Section common styles */
.page-support__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #F2C14E; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-support__section-intro {
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

/* How Can We Help Section */
.page-support__how-can-we-help-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
}

/* FAQ Area */
.page-support__faq-area {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__faq-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #FFD36B; /* Secondary color for sub-titles */
  text-align: center;
  margin-bottom: 30px;
}

.page-support__faq-intro {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
}

.page-support__faq-item {
  background-color: #111111; /* Card BG */\  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: #FFF6D6; /* Text Main */
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-support__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-support__faq-answer p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #FFF6D6;
}

/* Guides Section */
.page-support__guides-section {
  margin-top: 80px;
}

.page-support__guides-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #FFD36B; /* Secondary color for sub-titles */
  text-align: center;
  margin-bottom: 30px;
}

.page-support__guides-intro {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
}

.page-support__guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-support__guide-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.page-support__guide-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-support__guide-card-title {
  font-size: 1.4rem;
  color: #F2C14E; /* Primary color for titles */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-support__guide-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-support__guide-card-title a:hover {
  text-decoration: underline;
}

.page-support__guide-card-description {
  font-size: 0.95rem;
  color: #FFF6D6; /* Text Main */
  padding: 0 15px;
}

/* Contact Section */
.page-support__contact-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
}

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

.page-support__contact-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.page-support__contact-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-support__contact-method-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Primary color for titles */
  margin-bottom: 15px;
}

.page-support__contact-description {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 25px;
}

.page-support__contact-cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #0A0A0A; /* Dark text on button */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__contact-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Security Section */
.page-support__security-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
}

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

.page-support__security-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__security-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.page-support__security-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-support__security-feature-title {
  font-size: 1.3rem;
  color: #FFD36B; /* Secondary color for feature titles */
  margin-bottom: 10px;
}

.page-support__security-item p {
  font-size: 0.95rem;
  color: #FFF6D6; /* Text Main */
}

.page-support__security-links {
  text-align: center;
  margin-top: 60px;
}

.page-support__link-button {
  display: inline-block;
  background-color: transparent;
  border: 2px solid #F2C14E; /* Primary color border */
  color: #F2C14E; /* Primary color text */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__link-button:hover {
  background-color: #F2C14E;
  color: #0A0A0A; /* Dark text on primary background */
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-support__hero-section {
    flex-direction: row; /* Desktop: image on right, content on left */
    text-align: left;
    padding-top: var(--header-offset, 120px);
    padding-bottom: 80px;
  }

  .page-support__hero-content {
    flex: 1;
    padding-right: 40px;
    text-align: left;
  }

  .page-support__hero-image-wrapper {
    flex: 1;
    margin-top: 0;
    margin-left: 40px;
  }

  .page-support__hero-title {
    text-align: left;
  }

  .page-support__hero-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-support__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO主图区域的padding-top必须在移动端媒体查询中重新设置 */
  .page-support__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile: controlled by shared's media */
    padding-bottom: 40px;
  }

  .page-support__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-support__hero-description {
    font-size: 1rem;
  }

  .page-support__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-support__section-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-support__faq-heading,
  .page-support__guides-heading {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .page-support__faq-question,
  .page-support__guide-card-title,
  .page-support__contact-method-title,
  .page-support__security-feature-title {
    font-size: 1.1rem;
  }

  /* Mobile images responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__guide-card,
  .page-support__contact-card,
  .page-support__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile buttons responsiveness */
  .page-support__hero-cta-button,
  .page-support__contact-cta-button,
  .page-support__link-button,
  .page-support a[class*="button"],
  .page-support 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;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-support__security-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}