/* style/about.css */

/* 基础样式 */
.page-about {
  color: #f0f0f0; /* 默认文字颜色为浅色，因为body背景色通常为深色 */
  background: var(--dark-bg-1, #0d0d0d); /* 确保背景色和文字对比度 */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* 固定页头与主体间距 */
}

.page-about h1,
.page-about h2,
.page-about h3,
.page-about h4,
.page-about h5,
.page-about h6 {
  color: #FFD700; /* 标题使用主色调 */
  margin-top: 20px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-about h1 {
  font-size: 2.8em;
  font-weight: 700;
}

.page-about h2 {
  font-size: 2.2em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
}

.page-about h3 {
  font-size: 1.8em;
  font-weight: 600;
}

.page-about p {
  margin-bottom: 1em;
}

.page-about a {
  color: #FFD700;
  text-decoration: none;
}

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

/* 容器通用样式 */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__section {
  padding: 60px 0;
  background: var(--dark-bg-2, #1a1a1a); /* 深色背景 */
  margin-bottom: 0; /* No margin between sections */
}

.page-about__section:nth-of-type(even) {
  background: var(--dark-bg-3, #222222); /* 交替背景色 */
}

.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #cccccc;
}

/* Hero Banner */
.page-about__hero-banner {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-about__hero-background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay for darkening */
  z-index: 1;
}

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

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

.page-about__intro-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-inline,
.page-about a[class*="button"],
.page-about a[class*="btn"] {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: #FFD700;
  color: #000000; /* Black text for golden button for contrast */
  border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background: #FFD700;
  color: #000000;
  transform: translateY(-2px);
}

.page-about__btn-inline {
  display: inline-block;
  padding: 8px 15px;
  background: #8B0000; /* Secondary color for inline buttons */
  color: #ffffff;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  text-decoration: none;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.page-about__btn-inline:hover {
  background: #6a0000;
  text-decoration: none;
}

/* Content Grid */
.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  min-width: 0;
}

.page-about__image-block {
  flex: 1;
  min-width: 0;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__feature-card {
  background: var(--dark-bg-3, #222222);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__feature-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__feature-title {
  color: #FFD700;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-about__feature-card p {
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-about__btn-text-link {
  color: #8B0000;
  font-weight: bold;
  text-decoration: none;
}

.page-about__btn-text-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-about__section--faq {
  background: var(--dark-bg-2, #1a1a1a);
}

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

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #333333; /* Darker background for FAQ items */
  color: #f0f0f0; /* Light text for FAQ items */
}

/* FAQ默认状态 - 答案隐藏 */
.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #cccccc; /* Light text for answer */
  background: #2a2a2a; /* Slightly lighter dark background for answer */
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #2a2a2a; /* Slightly lighter dark background for answer */
  border-radius: 0 0 5px 5px;
  color: #cccccc;
}

/* 问题样式 */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #FFD700; /* Golden background for question */
  color: #000000; /* Black text for question for contrast */
  border: 1px solid #FFD700;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #e6c200;
  border-color: #e6c200;
}

.page-about__faq-question:active {
  background: #d4b300;
}

/* 问题标题样式 */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #000000;
}

/* 切换图标 */
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #000000;
  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: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #000000;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about h2 {
    font-size: 2em;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-banner {
    min-height: 400px;
    padding-bottom: 40px;
  }
  .page-about__main-title {
    font-size: 2em;
  }
  .page-about__intro-description {
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-inline,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__section {
    padding: 40px 0;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about h2 {
    font-size: 1.8em;
  }
  .page-about h3 {
    font-size: 1.3em;
  }
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-about__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
  /* Mobile image and container responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-banner,
  .page-about__content-grid,
  .page-about__features-grid,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Specific padding for sections that might lose it due to width:100% on container */
  .page-about__section:not(.page-about__hero-banner) {
    padding-left: 15px;
    padding-right: 15px;
  }
}