/* style/promo.css */

/* Root variables for colors */
:root {
  --pk7-primary-color: #F2C14E;
  --pk7-secondary-color: #FFD36B;
  --pk7-background-color: #0A0A0A; /* From custom colors "背景" */
  --pk7-card-background: #111111; /* From custom colors "Card B G" */
  --pk7-text-main-color: #FFF6D6; /* From custom colors "Text Main" */
  --pk7-border-color: #3A2A12; /* From custom colors "边框" */
  --pk7-glow-color: #FFD36B; /* From custom colors "Glow" */
  --pk7-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* From custom colors "按钮" */
}

/* Base styles for the promo page */
.page-promo {
  font-family: Arial, sans-serif;
  color: var(--pk7-text-main-color); /* Light text for dark background */
  background-color: var(--pk7-background-color); /* Ensure consistency with body bg */
  line-height: 1.6;
}

/* Main content container */
.page-promo__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-promo__section {
  padding: 60px 0;
  text-align: center;
}

.page-promo__dark-section {
  background-color: var(--pk7-card-background); /* Darker background for contrast */
  color: var(--pk7-text-main-color);
}

.page-promo__section-title {
  font-size: 2.5em;
  color: var(--pk7-primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promo__sub-title {
  font-size: 1.8em;
  color: var(--pk7-secondary-color);
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promo__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--pk7-text-main-color);
}

.page-promo__text-center {
  text-align: center;
}

/* Hero Section */
.page-promo__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 600px;
  overflow: hidden;
  color: var(--pk7-text-main-color);
  text-align: center;
}

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

.page-promo__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-promo__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-promo__main-title {
  font-size: clamp(2.5em, 5vw, 4.5em); /* Use clamp for H1 font size */
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

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

/* Buttons */
.page-promo__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-promo__btn-primary,
.page-promo__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  min-width: 180px;
}

.page-promo__btn-primary {
  background: var(--pk7-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promo__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.page-promo__btn-secondary {
  background: transparent;
  color: var(--pk7-secondary-color);
  border: 2px solid var(--pk7-secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promo__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--pk7-secondary-color);
  color: var(--pk7-background-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Image content */
.page-promo__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  filter: none; /* Ensure no filter changes original color */
}

/* Video Section */
.page-promo__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for video section */
  background-color: var(--pk7-background-color);
}

.page-promo__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

.page-promo__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  margin-top: 20px;
}

.page-promo__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  filter: none; /* Ensure no filter changes original color */
}

.page-promo__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.page-promo__video-caption {
  font-size: 1em;
  margin-top: 20px;
  color: #ccc;
}


/* Grid Layout for Categories */
.page-promo__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promo__card {
  background-color: var(--pk7-card-background);
  border: 1px solid var(--pk7-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--pk7-text-main-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promo__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-promo__card-title {
  font-size: 1.5em;
  color: var(--pk7-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promo__card-text {
  font-size: 1em;
  color: var(--pk7-text-main-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promo__card .page-promo__btn-secondary {
  width: fit-content;
  margin-top: 20px;
  align-self: flex-start;
}

/* Lists */
.page-promo__numbered-list,
.page-promo__bullet-list {
  list-style-position: inside;
  text-align: left;
  max-width: 900px;
  margin: 30px auto;
  padding-left: 0;
}

.page-promo__numbered-list {
  list-style-type: decimal;
}

.page-promo__bullet-list {
  list-style-type: disc;
}

.page-promo__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: var(--pk7-text-main-color);
  padding-left: 10px;
}

.page-promo__list-item strong {
  color: var(--pk7-secondary-color);
}

.page-promo__note {
  font-style: italic;
  font-size: 0.95em;
  color: #aaa;
  margin-top: 30px;
}

/* Flex Container for Mobile App and Security Sections */
.page-promo__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-promo__flex-container--reverse {
  flex-direction: row-reverse;
}

.page-promo__content-block {
  flex: 1;
  min-width: 300px;
}

.page-promo__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.page-promo__app-download-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-promo__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-promo__faq-item {
  background-color: var(--pk7-card-background);
  border: 1px solid var(--pk7-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--pk7-card-background);
  color: var(--pk7-primary-color);
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
  background-color: #1a1a1a;
}

.page-promo__faq-title {
  margin: 0;
  color: var(--pk7-primary-color);
  font-size: 1em;
}

.page-promo__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: var(--pk7-secondary-color);
}

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

.page-promo__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--pk7-text-main-color);
}

.page-promo__faq-item.active .page-promo__faq-answer {
  max-height: 1000px !important;
  padding: 15px 25px;
}

.page-promo__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
  color: var(--pk7-text-main-color);
}

/* Links within text */
.page-promo a {
  color: var(--pk7-secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promo a:hover {
  color: var(--pk7-primary-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promo__section-title {
    font-size: 2em;
  }
  .page-promo__sub-title {
    font-size: 1.5em;
  }
  .page-promo__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-promo__section {
    padding: 40px 0;
  }

  .page-promo__section-title {
    font-size: 1.8em;
  }

  .page-promo__sub-title {
    font-size: 1.3em;
  }

  .page-promo__text-block {
    font-size: 1em;
  }

  .page-promo__hero-section {
    min-height: 500px;
    padding-top: 0 !important;
  }

  .page-promo__hero-content {
    padding: 15px;
  }

  .page-promo__main-title {
    font-size: clamp(2em, 8vw, 3em);
  }

  .page-promo__hero-description {
    font-size: 1em;
  }

  .page-promo__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  .page-promo__btn-primary,
  .page-promo__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-promo__card {
    padding: 20px;
  }

  .page-promo__flex-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-promo__flex-container--reverse {
    flex-direction: column;
  }

  .page-promo__app-download-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
  }

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

  .page-promo__section,
  .page-promo__card,
  .page-promo__container,
  .page-promo__video-container,
  .page-promo__faq-list,
  .page-promo__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Video section specific padding for mobile */
  .page-promo__video-section {
    padding-top: 10px !important;
  }

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

@media (max-width: 480px) {
  .page-promo__section-title {
    font-size: 1.5em;
  }
  .page-promo__hero-section {
    min-height: 400px;
  }
  .page-promo__main-title {
    font-size: clamp(1.8em, 10vw, 2.5em);
  }
  .page-promo__grid-layout {
    grid-template-columns: 1fr;
  }
}