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

/* Base Styles */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is #0a0a0a from shared.css */
}

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

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #ffffff; /* Default for dark background */
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Slightly off-white for paragraphs */
}

/* Text Colors for Contrast */
.page-resources__text-light {
  color: #ffffff;
}

.page-resources__text-dark {
  color: #333333;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__cta-button-large {
  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;
  margin: 10px;
  box-sizing: border-box; /* Crucial for responsiveness */
}

.page-resources__btn-primary {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-resources__btn-primary:hover {
  background-color: #005f2e;
}

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

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

/* Specific button colors from custom palette */
.page-resources__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid transparent;
}
.page-resources__btn-register:hover {
  background-color: #a00606;
}

.page-resources__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid transparent;
}
.page-resources__btn-login:hover {
  background-color: #a00606;
}


/* Hero Section */
.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px; /* Adjusted padding-top for header offset */
  background-color: #0a0a0a; /* Dark background for hero */
  color: #ffffff;
}

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  max-width: 900px;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  color: #f0f0f0;
}

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

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
  /* filter: brightness(0.5); /* Darken image to ensure text contrast - REMOVED per instruction */
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Introduction Section */
.page-resources__introduction {
  background-color: #1a1a1a; /* Darker background for contrast */
  color: #ffffff;
}

.page-resources__introduction .page-resources__section-title {
  color: #ffffff;
}

/* Benefits Section */
.page-resources__benefits {
  background-color: #017439; /* Brand green background */
  color: #ffffff;
}

.page-resources__benefits .page-resources__section-title {
  color: #ffffff;
}

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark/brand background */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  text-decoration: none; /* For link cards */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-resources__card-light {
  background-color: #ffffff; /* White background for cards on dark/brand background */
  color: #333333;
}

.page-resources__card-light .page-resources__card-title {
  color: #017439; /* Brand color for titles on light cards */
}

.page-resources__card-light .page-resources__card-text {
  color: #333333;
}

.page-resources__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-resources__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* How-to Section */
.page-resources__how-to {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-resources__how-to .page-resources__section-title {
  color: #ffffff;
}

.page-resources__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-resources__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-resources__step-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-resources__step-text a {
  color: #FFFF00; /* Highlight links in steps */
  text-decoration: underline;
}

.page-resources__step-text a:hover {
  color: #ffd700;
}

.page-resources__step-image {
  width: 100%;
  max-width: 700px; /* Limit image width */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

.page-resources__how-to-cta {
  margin-top: 40px;
}

/* Useful Resources Section */
.page-resources__useful-resources {
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-resources__useful-resources .page-resources__section-title {
  color: #ffffff;
}

.page-resources__resource-card {
  height: 100%; /* Ensure cards are same height in grid */
}

/* Video Section */
.page-resources__video-section {
  background-color: #1a1a1a;
  color: #ffffff;
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-resources__video-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px; /* Max width for video */
  margin: 40px auto 0;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-resources__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer; /* Indicate clickable */
}

.page-resources__video-overlay-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  z-index: 10;
  white-space: normal;
  word-wrap: break-word;
  max-width: 90%;
}

.page-resources__video-overlay-button:hover {
  background-color: #a00606;
}


/* FAQ Section */
.page-resources__faq-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-resources__faq-section .page-resources__section-title {
  color: #ffffff;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-resources__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-resources__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439; /* Brand color for toggle */
}

.page-resources__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-resources__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-resources__faq-answer a {
  color: #FFFF00; /* Highlight links in FAQ answers */
  text-decoration: underline;
}

.page-resources__faq-answer a:hover {
  color: #ffd700;
}

/* Final CTA Section */
.page-resources__cta-final {
  background-color: #017439; /* Brand green background */
  color: #ffffff;
  padding: 80px 0;
}

.page-resources__cta-final .page-resources__section-title {
  color: #ffffff;
}

.page-resources__cta-content {
  max-width: 800px;
}

.page-resources__cta-button-large {
  margin-top: 30px;
  padding: 18px 40px;
  font-size: 1.25em;
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00;
}

.page-resources__cta-button-large:hover {
  background-color: #a00606;
}


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

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__container {
    padding: 0 15px; /* Add padding to prevent content from touching edges */
  }

  /* Hero Section */
  .page-resources__hero-section {
    padding: 100px 0 40px; /* Adjust padding-top for mobile header offset */
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__cta-button-large,
  .page-resources__btn-register,
  .page-resources__btn-login,
  .page-resources a[class*="button"],
  .page-resources 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;
  }

  /* Sections and Cards */
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__paragraph {
    font-size: 1em;
  }
  .page-resources__grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__card-image {
    height: 180px;
  }
  .page-resources__card-title {
    font-size: 1.4em;
  }
  .page-resources__step-item {
    padding: 20px;
  }
  .page-resources__step-title {
    font-size: 1.5em;
  }

  /* Images */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__hero-image-wrapper,
  .page-resources__card,
  .page-resources__step-item,
  .page-resources__video-wrapper,
  .page-resources__faq-item,
  .page-resources__section,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}