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

/* General page styling */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #121212; /* Inherited from shared, but for clarity */
}

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

.page-resources__dark-bg {
  background-color: #1A2E44; /* Main brand color */
  color: #ffffff;
}

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Auxiliary brand color for titles */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__text-block {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 100px 20px; /* Increased padding for better visual */
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Prevent image overflow */
}

.page-resources__main-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.page-resources__description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

.page-resources__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 50px;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-resources__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #1A2E44; /* Dark blue text */
}

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

.page-resources__btn-secondary {
  background-color: #1A2E44; /* Dark blue */
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
  background-color: #0d1e30;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block; /* Ensure it behaves as a block element for spacing */
  margin: 0 auto;
}

/* Guides Section */
.page-resources__guides-section {
  background-color: #121212; /* Dark background */
  padding: 80px 0;
}

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

.page-resources__guide-item {
  background-color: #1A2E44; /* Dark blue card */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Light text */
}

.page-resources__guide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__guide-item-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold title */
}

.page-resources__guide-item-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources__guide-item-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.page-resources__guide-item-link {
  display: inline-block;
  padding: 10px 25px;
  background-color: #FFD700; /* Gold */
  color: #1A2E44; /* Dark blue text */
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__guide-item-link:hover {
  background-color: #e6c200;
  transform: translateY(-1px);
}

/* Strategies Section */
.page-resources__strategies-section {
  padding: 80px 0;
}

.page-resources__strategy-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-resources__strategy-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for contrast on dark blue */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-resources__strategy-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__strategy-item-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-resources__strategy-item-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources__strategy-item-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.page-resources__strategy-item-link {
  display: inline-block;
  padding: 10px 25px;
  background-color: #FFD700;
  color: #1A2E44;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__strategy-item-link:hover {
  background-color: #e6c200;
  transform: translateY(-1px);
}

/* News Section */
.page-resources__news-section {
  background-color: #121212;
  padding: 80px 0;
}

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

.page-resources__news-item {
  background-color: #1A2E44;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-resources__news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__news-item-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources__news-item-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-resources__news-item-title a {
  color: #FFD700; /* Gold for news titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__news-item-title a:hover {
  color: #e6c200;
}

.page-resources__news-item-excerpt {
  font-size: 16px;
  margin-bottom: 15px;
  flex-grow: 1; /* Make excerpt take available space */
  color: #e0e0e0;
}

.page-resources__news-item-date {
  font-size: 14px;
  color: #999;
  text-align: right;
  display: block;
  margin-top: auto; /* Push date to bottom */
}


/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 0;
}

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

/* FAQ容器样式 */
.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05); /* Light transparent background for item */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.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 25px; /* Adjust padding for consistency */
  opacity: 0;
  color: #e0e0e0; /* Light text for answer */
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 25px !important; /* Adjust padding for consistency */
  opacity: 1;
  background: #1A2E44; /* Dark blue background for active answer */
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Adjust padding for consistency */
  background: #1A2E44; /* Dark blue background for question */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  border-radius: 8px; /* Rounded corners for question */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #FFD700; /* Gold text for question */
}

.page-resources__faq-question:hover {
  background: #2a415b; /* Slightly lighter dark blue on hover */
  border-color: rgba(255, 255, 255, 0.2);
}

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

/* 问题标题样式 */
.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #FFD700; /* Gold for FAQ question titles */
}

/* 切换图标 */
.page-resources__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  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; /* Larger hit area for icon */
  height: 30px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Rotate to form an 'X' or similar */
}

/* About Section */
.page-resources__about-section {
  background-color: #121212;
  padding: 80px 0;
}

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

.page-resources__about-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-resources__about-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__about-item-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-resources__about-item-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources__about-item-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.page-resources__about-item-link {
  display: inline-block;
  padding: 10px 25px;
  background-color: #FFD700;
  color: #1A2E44;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__about-item-link:hover {
  background-color: #e6c200;
  transform: translateY(-1px);
}

/* Final CTA Section */
.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #1A2E44; /* Dark blue background */
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 42px;
  }
  .page-resources__section-title {
    font-size: 30px;
  }
  .page-resources__description,
  .page-resources__text-block {
    font-size: 17px;
  }
  .page-resources__guide-item-title,
  .page-resources__strategy-item-title,
  .page-resources__news-item-title,
  .page-resources__about-item-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-resources__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-resources__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources__main-title {
    font-size: 36px;
  }

  .page-resources__description {
    font-size: 16px;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent buttons from touching edges */
  }

  .page-resources__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

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

  .page-resources__text-block {
    font-size: 16px;
    margin-bottom: 40px;
  }

  /* Images */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  .page-resources__guide-items,
  .page-resources__strategy-items,
  .page-resources__news-items,
  .page-resources__about-items {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-resources__guide-item,
  .page-resources__strategy-item,
  .page-resources__news-item,
  .page-resources__about-item {
    padding: 25px;
  }

  .page-resources__guide-item-title,
  .page-resources__strategy-item-title,
  .page-resources__news-item-title,
  .page-resources__about-item-title {
    font-size: 20px;
  }

  .page-resources__guide-item-text,
  .page-resources__strategy-item-text,
  .page-resources__news-item-excerpt,
  .page-resources__about-item-text {
    font-size: 15px;
  }

  /* FAQ Mobile */
  .page-resources__faq-question {
    padding: 15px 20px;
    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 20px;
  }
  
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 30px;
  }
  .page-resources__section-title {
    font-size: 24px;
  }
  .page-resources__description,
  .page-resources__text-block {
    font-size: 15px;
  }
  .page-resources__cta-button {
    padding: 10px 15px;
    font-size: 15px;
  }
}