/* style/resources.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* Base styles for page-resources */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Body background color from shared.css */
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Default for dark sections */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #ffffff; /* Default for dark sections */
}

/* Color contrast handling */
.page-resources__dark-bg {
  background-color: #000000; /* Ensure body background is used */
  color: #ffffff; /* Light text on dark background */
  padding: 60px 0;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text on light background */
  padding: 60px 0;
}

.page-resources__light-bg .page-resources__section-title {
  color: #017439; /* Brand color for titles on light background */
}

.page-resources__light-bg .page-resources__text-block {
  color: #333333;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh; /* Ensure it takes up significant viewport height */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5; /* Slightly dim the background image */
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: #ffffff;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

/* General Grid Layout */
.page-resources__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Card Styles */
.page-resources__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Light text on semi-transparent dark card */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures content fills card height */
}

.page-resources__light-bg .page-resources__card {
  background-color: #ffffff;
  color: #333333; /* Dark text on white card */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-resources__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439; /* Brand color for card titles */
  font-weight: bold;
}

.page-resources__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0; /* Lighter text for card content on dark background */
}

.page-resources__light-bg .page-resources__card-text {
  color: #555555; /* Darker text for card content on light background */
}

/* Content Images */
.page-resources__image-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-resources__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it's treated as a block element */
  margin: 0 auto; /* Center the image */
}

/* Steps Section */
.page-resources__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.page-resources__step-item {
  flex: 1;
  min-width: 300px;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-resources__step-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__faq-item {
  background-color: #f9f9f9;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-item summary {
  list-style: none; /* Remove default marker */
  cursor: pointer;
  padding: 20px 25px;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-resources__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

.page-resources__faq-item summary:hover {
  background-color: #005f2c;
}

.page-resources__faq-qtext {
  flex-grow: 1;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  width: 20px;
  text-align: center;
  line-height: 1;
}

.page-resources__faq-answer {
  padding: 20px 25px;
  background-color: #ffffff;
  color: #333333;
  font-size: 1.1em;
  line-height: 1.6;
}

.page-resources__faq-answer p {
  margin: 0;
}

/* Call to Action Section */
.page-resources__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: #017439; /* Brand green background */
  color: #ffffff;
}

.page-resources__cta-section .page-resources__section-title {
  color: #ffffff;
  font-size: 2.8em;
}

.page-resources__cta-section .page-resources__text-block {
  max-width: 800px;
  margin: 20px auto 40px auto;
  font-size: 1.2em;
}

.page-resources__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.2em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__card-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources__container {
    padding: 0 15px; /* Add padding for mobile content */
  }

  .page-resources__hero-section {
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }

  .page-resources__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-resources__cta-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources__text-block {
    font-size: 1em;
  }

  .page-resources__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__card {
    padding: 25px;
  }

  .page-resources__card-title {
    font-size: 1.4em;
  }

  .page-resources__steps {
    flex-direction: column;
    gap: 20px;
  }

  .page-resources__step-item {
    min-width: unset;
    padding: 25px;
  }

  .page-resources__step-title {
    font-size: 1.4em;
  }

  .page-resources__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-resources__faq-answer {
    font-size: 0.95em;
    padding: 15px 20px;
  }

  .page-resources__cta-section {
    padding: 60px 0;
  }

  .page-resources__cta-section .page-resources__section-title {
    font-size: 2em;
  }

  .page-resources__cta-section .page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  /* Image responsiveness for mobile */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__hero-image-wrapper,
  .page-resources__image-wrapper,
  .page-resources__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsiveness for mobile (if any, not present in this HTML) */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}