:root {
  --primary-color: #1A2B4C;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a; /* Body background from shared.css */
  --bg-light: #f1f3f5;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
}

/* Ensure page content is below fixed header */
.page-resources {
  padding-top: 0; /* Handled by individual sections */
  background-color: var(--bg-dark); /* Inherit from body */
  color: var(--text-light); /* Default text color for dark background */
}

/* 🚨 Desktop HERO主图区域样式 */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
}

.page-resources__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: row; /* Desktop: side-by-side */
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

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

.page-resources__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

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

.page-resources__main-heading {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-resources__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__hero-description a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__hero-description a:hover {
  text-decoration: underline;
}

/* General Section Styling */
.page-resources__section {
  padding: 80px 20px;
}

.page-resources__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

.page-resources__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.page-resources__section-description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-resources__section-description a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__section-description.page-resources__text-light a {
  color: var(--secondary-color);
}

.page-resources__section-description a:hover {
  text-decoration: underline;
}

.page-resources__text-light {
  color: var(--text-light);
}

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

.page-resources__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

.page-resources__card-image {
  width: 100%;
  max-width: 300px; /* Ensure images are large enough */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-resources__card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__card-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-resources__card-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__card-text a:hover {
  text-decoration: underline;
}

/* CTA Block */
.page-resources__cta-block {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-light);
}

.page-resources__cta-block .page-resources__cta-text {
  font-size: 20px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-resources__cta-block .page-resources__cta-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__cta-block .page-resources__cta-text a:hover {
  text-decoration: underline;
}

/* Advantages Grid */
.page-resources__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__advantage-item {
  padding: 40px;
}

.page-resources__advantage-icon {
  width: 100%;
  max-width: 150px; /* Large icons for advantages */
  height: auto;
  margin-bottom: 20px;
}

.page-resources__advantage-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__advantage-item.page-resources__card.page-resources__light-bg .page-resources__advantage-title {
  color: var(--primary-color);
}

.page-resources__advantage-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-resources__advantage-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__advantage-text a:hover {
  text-decoration: underline;
}

/* Guide Steps */
.page-resources__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-resources__guide-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  color: var(--text-dark);
}

.page-resources__guide-image {
  width: 100%;
  max-width: 250px; /* Large images for guide steps */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__guide-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__guide-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-resources__guide-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__guide-text a:hover {
  text-decoration: underline;
}

.page-resources__guide-list {
  list-style-type: disc;
  text-align: left;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-resources__guide-list li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.page-resources__guide-list li strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__faq-section .page-resources__section-title,
.page-resources__faq-section .page-resources__section-description {
  color: var(--text-light);
}

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

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: var(--card-bg);
  color: var(--text-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: var(--card-bg);
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-answer p {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 16px;
}

.page-resources__faq-answer p a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__faq-answer p a:hover {
  text-decoration: underline;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources__faq-question:active {
  background: #eeeeee;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

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

/* CTA Buttons */
.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-resources__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-resources__btn-primary:hover {
  background: #e6c200; /* Darker secondary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .page-resources__hero-content {
    padding-right: 0;
    text-align: center;
  }

  .page-resources__hero-image-wrapper {
    justify-content: center;
  }

  .page-resources__hero-image {
    max-width: 500px;
  }

  .page-resources__main-heading {
    font-size: 42px;
  }

  .page-resources__section-title {
    font-size: 32px;
  }

  .page-resources__card-title {
    font-size: 22px;
  }

  .page-resources__advantage-title {
    font-size: 24px;
  }

  .page-resources__guide-title {
    font-size: 20px;
  }

  .page-resources__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* 🚨 Mobile HERO主图区域样式 */
  .page-resources__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__hero-image {
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources__hero-container {
    gap: 30px;
  }

  .page-resources__main-heading {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-resources__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-resources__section {
    padding: 40px 15px;
  }

  .page-resources__container {
    padding: 0 10px;
  }

  .page-resources__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-resources__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-resources__card,
  .page-resources__advantage-item,
  .page-resources__guide-item {
    padding: 25px;
  }

  .page-resources__card-image,
  .page-resources__advantage-icon,
  .page-resources__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources__card-title {
    font-size: 20px;
  }

  .page-resources__advantage-title {
    font-size: 22px;
  }

  .page-resources__guide-title {
    font-size: 18px;
  }

  .page-resources__card-text,
  .page-resources__advantage-text,
  .page-resources__guide-text,
  .page-resources__guide-list li,
  .page-resources__faq-answer p {
    font-size: 15px;
  }

  .page-resources__cta-block {
    padding: 20px;
  }

  .page-resources__cta-block .page-resources__cta-text {
    font-size: 17px;
  }

  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 26px;
    height: 26px;
    font-size: 24px;
  }
  
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  /* Force all images and their containers to be responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-container,
  .page-resources__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__faq-list {
    padding: 0 10px;
  }
}

/* General link styling for page content */
.page-resources a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources a:hover {
  text-decoration: underline;
}

/* Adjust for dark background sections */
.page-resources__dark-bg a {
  color: var(--secondary-color);
}

.page-resources__dark-bg a:hover {
  text-decoration: underline;
}