.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Body background from shared.css */
}

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

.page-resources__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjusted padding to account for header offset, then internal spacing */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: inherit;
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-resources__info-section, .page-resources__methods-section, .page-resources__video-section, .page-resources__safety-section, .page-resources__benefits-section, .page-resources__faq-section, .page-resources__conclusion-section {
  padding: 80px 0;
}

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

.page-resources__grid--two-columns {
  grid-template-columns: 1fr 1fr;
}

.page-resources__grid--benefits {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-resources__card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-resources__card--reverse {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 20px;
  gap: 20px;
}

.page-resources__card--reverse .page-resources__card-content {
  flex: 1;
}

.page-resources__card-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-resources__card--reverse .page-resources__card-image {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: inherit;
}

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

.page-resources__list {
  text-align: left;
  list-style: disc inside;
  margin: 0;
  padding: 0;
  font-size: 1em;
  color: inherit;
}

.page-resources__list li {
  margin-bottom: 10px;
}

.page-resources__btn-primary, .page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-resources__accordion {
  max-width: 900px;
  margin: 0 auto 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.page-resources__accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__accordion-item:last-child {
  border-bottom: none;
}

.page-resources__accordion-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-resources__accordion-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-resources__accordion-item.active .page-resources__accordion-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 15px 25px 20px;
}

.page-resources__accordion-question span:last-child {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources__accordion-item.active .page-resources__accordion-question span:last-child {
  transform: rotate(45deg);
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-resources__benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-resources__benefit-item:hover {
  transform: translateY(-5px);
}

.page-resources__benefit-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  object-fit: contain;
  min-width: 200px; /* Enforce min size, but icon should be small, so this might be an issue. Re-evaluating. Icons should be functional, not content images, so they can be smaller if they are part of shared component or if they are decorative. But the rule says '禁止所有小图标'. I will make them larger in HTML and let CSS scale them down for display, while ensuring the placeholder is large enough. */
  min-height: 200px; /* Re-evaluating. The rule states '禁止所有小图标' and '任何宽度或高度小于200像素的图片', but then provides 'icon' as a type. This is contradictory. I will use the placeholder size as requested by the user's prompt (200x200 for icon type) and set `width` and `height` attributes in HTML for display. */
}

.page-resources__benefit-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-resources__benefit-text {
  font-size: 0.95em;
  color: #555555;
}

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: #333333;
  background-color: #f5f5f5;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: #e0e0e0;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Ensure it expands fully */
  padding: 15px 25px 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__grid--two-columns {
    grid-template-columns: 1fr;
  }
  .page-resources__card--reverse {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__card--reverse .page-resources__card-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }
  .page-resources__list {
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Mobile specific padding for content sections */
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__info-section, .page-resources__methods-section, .page-resources__video-section, .page-resources__safety-section, .page-resources__benefits-section, .page-resources__faq-section, .page-resources__conclusion-section {
    padding: 40px 15px;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.9em;
  }
  .page-resources__grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__btn-primary, .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-resources__hero-buttons, .page-resources__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Image responsiveness for mobile */
  .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__benefit-item,
  .page-resources__accordion,
  .page-resources__faq-item,
  .page-resources__video-wrapper,
  .page-resources__grid,
  .page-resources__grid--two-columns,
  .page-resources__grid--benefits {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources__card--reverse .page-resources__card-image {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px !important;
  }
  
  /* Video responsiveness for mobile */
  .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;
  }

  /* FAQ specific mobile styles */
  .page-resources__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px 15px;
  }
}