/* style/support.css */
.page-support {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so light text */
  background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-support__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(38, 169, 224, 0.4);
}

.page-support__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-support__hero-section {
  display: flex;
  flex-direction: column; /* Enforce "上图下文" (image above text) */
  align-items: center;
  padding: 0 0 60px 0; /* padding-top: 0 as per rule, rely on body padding */
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  position: relative;
  overflow: hidden;
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-width: 1600px; /* Example max width for the image */
  margin-bottom: 30px; /* Space between image and content */
  position: relative;
  z-index: 1;
}

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

.page-support__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 2;
  position: relative;
}

.page-support__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Using clamp for H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: #26A9E0;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 10px rgba(38, 169, 224, 0.6);
}

.page-support__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-support__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
  box-shadow: 0 4px 15px rgba(234, 124, 7, 0.4);
}

.page-support__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 124, 7, 0.6);
}

.page-support__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  box-shadow: 0 4px 15px rgba(38, 169, 224, 0.2);
}

.page-support__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 169, 224, 0.4);
}

/* Contact Options Section */
.page-support__contact-options-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-support__contact-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  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.2);
}

.page-support__contact-icon {
  width: 250px; /* Increased from 150px to meet >= 200px requirement */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
}

.page-support__card-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-support__card-text {
  color: #cccccc;
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-support__card-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.page-support__card-button:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-support__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.page-support__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.page-support__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-support__faq-item summary::-webkit-details-marker {
  display: none; /* Hide for Webkit browsers */
}

.page-support__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-support__faq-answer {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  color: #cccccc;
  font-size: 0.95em;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-support__faq-answer p {
  margin-bottom: 10px;
}

.page-support__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-support__faq-cta {
  margin-top: 50px;
}

/* Safety Gaming Section */
.page-support__safety-gaming-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-support__safety-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__safety-icon {
  width: 250px; /* Increased from 150px to meet >= 200px requirement */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
}

/* Download App Section */
.page-support__download-app-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  text-align: center;
}

.page-support__download-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.page-support__download-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General image rules for content area - ensure min 200px */
.page-support img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__hero-description {
    font-size: 1.1em;
  }
  .page-support__main-title {
    font-size: clamp(2em, 3.5vw, 3em);
  }
  .page-support__container {
    padding: 0 15px;
  }
  .page-support__contact-grid,
  .page-support__safety-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-support__hero-section {
    padding-bottom: 40px;
  }
}

@media (max-width: 768px) {
  /* General page padding for mobile */
  .page-support__container {
    padding: 0 15px !important;
  }
  
  /* Hero Section */
  .page-support__hero-section {
    padding: 0 0 30px 0 !important;
  }
  .page-support__main-title {
    font-size: 1.8em !important; /* Smaller for mobile */
    margin-bottom: 15px !important;
  }
  .page-support__hero-description {
    font-size: 0.95em !important;
    margin-bottom: 30px !important;
  }
  .page-support__hero-image-wrapper {
    margin-bottom: 20px !important;
  }
  .page-support__hero-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* LOGO轮播区域 - Not present on this page, but as per checklist */
  /* If a logo carousel were present, it would follow these rules */
  /* .page-support__logo-carousel-section { padding: 10px 15px 20px !important; } */
  /* .page-support__logo-carousel { flex-wrap: wrap !important; justify-content: center !important; } */
  /* .page-support__logo-item { width: 80px !important; height: 80px !important; max-width: 80px !important; min-width: 80px !important; min-height: 80px !important; margin: 5px !important; } */

  /* Other Sections */
  .page-support__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px !important;
  }
  .page-support__section-description {
    font-size: 0.9em !important;
    margin-bottom: 30px !important;
  }
  .page-support__contact-options-section,
  .page-support__faq-section,
  .page-support__safety-gaming-section,
  .page-support__download-app-section {
    padding: 40px 0 !important;
  }

  /* Game display areas / Card grid layouts */
  .page-support__contact-grid,
  .page-support__safety-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-support__contact-card,
  .page-support__safety-card {
    padding: 20px !important;
  }
  .page-support__contact-icon,
  .page-support__safety-icon {
    width: 100% !important; /* Responsive width */
    height: auto !important;
    min-width: 200px !important; /* Enforce min-size for content images */
    min-height: 200px !important;
    object-fit: contain;
  }

  /* Universal image rules for content area */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Buttons and button containers */
  .page-support__cta-buttons,
  .page-support__download-cta {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px !important; /* Add padding to container */
  }
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support__card-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
  }
  .page-support__faq-item summary {
    font-size: 1em !important;
    padding: 15px !important;
  }
  .page-support__faq-answer {
    padding: 15px !important;
  }
  .page-support__download-image {
    max-width: 100% !important;
    height: auto !important;
  }
}