/* style/promotions.css */
:root {
  --primary-color: #1A2E4E;
  --secondary-color: #FFD700;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --bg-dark-1: #0d0d0d; /* Assuming from shared.css body background */
  --bg-light-1: #f8f8f8;
  --border-color: #e0e0e0;
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Default text color for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

/* 🚨 桌面端视频区域样式（必须严格遵守） */
.page-promotions__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* 桌面端：根据导航栏实际高度调整 */
  background: linear-gradient(135deg, var(--primary-color) 0%, #0a1a30 100%);
  box-sizing: border-box;
}

.page-promotions__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* 🚨 视频点击链接样式（必须严格遵守） */
.page-promotions__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

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

.page-promotions__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 宽高比 - 🚨 PageSpeed优化：固定宽高比避免布局偏移（CLS） */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* 防止视频控件阻止点击事件 */
  box-sizing: border-box;
}

/* 🚨 视频点击提示遮罩层样式（可选，增强用户体验） */
.page-promotions__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
  box-sizing: border-box;
}

.page-promotions__video-link:hover .page-promotions__video-overlay {
  opacity: 1;
}

.page-promotions__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  background: var(--secondary-color);
  border-radius: 5px;
  white-space: nowrap;
}

/* 🚨 Play Now按钮样式（必须严格遵守，位于视频下方中间位置） */
.page-promotions__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  box-sizing: border-box;
}

.page-promotions__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

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

.page-promotions__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__title-section {
  padding: 80px 20px;
  text-align: center;
  background: var(--bg-dark-1);
  color: var(--text-color-light);
  box-sizing: border-box;
}

.page-promotions__title-container {
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-promotions__title-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

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

.page-promotions__cta-button--secondary {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--secondary-color);
}

.page-promotions__cta-button--secondary:hover {
  background: #0a1a30;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__content-section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-promotions__dark-section {
  background: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-promotions__dark-section .page-promotions__section-title {
  color: var(--secondary-color);
}

.page-promotions__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.8;
}

.page-promotions__section-subtitle {
  font-size: 2em;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-promotions__text-block a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-promotions__text-block a:hover {
  color: #e6c200;
}

.page-promotions__ordered-list {
  max-width: 900px;
  margin: 30px auto 40px;
  padding-left: 25px;
  list-style-type: decimal;
  font-size: 1.1em;
}

.page-promotions__ordered-list li {
  margin-bottom: 15px;
  color: var(--text-color-light);
}

.page-promotions__ordered-list li strong {
  color: var(--secondary-color);
}

.page-promotions__ordered-list li a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-promotions__ordered-list li a:hover {
  color: #e6c200;
}

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

.page-promotions__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-color-light);
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__promo-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px;
  max-height: 250px;
}

.page-promotions__promo-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-promotions__promo-card-text {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
  opacity: 0.9;
}

.page-promotions__promo-card-text a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-promotions__promo-card-text a:hover {
  color: #e6c200;
}

.page-promotions__promo-card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__promo-card-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

.page-promotions__faq-section {
  padding: 60px 20px;
  background: var(--bg-light-1);
  color: var(--text-color-dark);
  box-sizing: border-box;
}

.page-promotions__faq-section .page-promotions__section-title {
  color: var(--primary-color);
}

.page-promotions__faq-list {
  margin-top: 40px;
}

/* FAQ容器样式 */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* FAQ默认状态 - 答案隐藏 */
.page-promotions__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: #f9f9f9;
  color: var(--text-color-dark);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

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

/* 问题标题样式 */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--primary-color);
}

/* 切换图标 */
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

.page-promotions__faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
  color: var(--text-color-dark);
}

.page-promotions__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-promotions__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__faq-answer a:hover {
  color: #0a1a30;
}

.page-promotions__brand-section {
  padding: 60px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-promotions__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__brand-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__brand-item-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-promotions__brand-item-text {
  font-size: 1em;
  opacity: 0.9;
  text-align: justify;
}

.page-promotions__brand-item-text a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-promotions__brand-item-text a:hover {
  color: #e6c200;
}

.page-promotions__brand-image {
  max-width: 250px;
  height: auto;
  margin-bottom: 25px;
  border-radius: 5px;
}

.page-promotions__blog-section {
  padding: 60px 20px;
  background: var(--bg-light-1);
  color: var(--text-color-dark);
  box-sizing: border-box;
}

.page-promotions__blog-section .page-promotions__section-title {
  color: var(--primary-color);
}

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

.page-promotions__blog-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-promotions__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-promotions__blog-item-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__blog-item-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--primary-color);
  line-height: 1.3;
}

.page-promotions__blog-item-excerpt {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-promotions__blog-item-date {
  font-size: 0.85em;
  color: #999;
  text-align: right;
}

.page-promotions__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-promotions__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__view-all-button:hover {
  background: #0a1a30;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 🚨 移动端响应式设计（必须严格遵守） */
@media (max-width: 768px) {
  .page-promotions {
    font-size: 15px;
    line-height: 1.5;
  }
  
  .page-promotions__video-section {
    padding-top: 10px !important; /* Mobile: adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-promotions__video-container,
  .page-promotions__video-link,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
  }
  
  .page-promotions__video-overlay {
    border-radius: 4px;
  }
  
  .page-promotions__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }
  
  .page-promotions__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-promotions__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__title-section {
    padding: 60px 15px;
  }

  .page-promotions__main-title {
    font-size: 2.2em;
  }

  .page-promotions__title-description {
    font-size: 1.1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-promotions__cta-button {
    width: 100%;
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-promotions__content-section,
  .page-promotions__faq-section,
  .page-promotions__brand-section,
  .page-promotions__blog-section {
    padding: 40px 15px;
  }

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

  .page-promotions__section-description,
  .page-promotions__text-block,
  .page-promotions__ordered-list li {
    font-size: 1em;
  }

  .page-promotions__ordered-list {
    padding-left: 20px;
  }

  .page-promotions__promo-grid,
  .page-promotions__brand-content,
  .page-promotions__blog-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__promo-card-image {
    min-height: 180px;
    max-height: 220px;
  }

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

  .page-promotions__promo-card-text {
    font-size: 0.95em;
  }

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

  .page-promotions__brand-item-title {
    font-size: 1.5em;
  }

  .page-promotions__brand-image {
    max-width: 200px;
  }

  .page-promotions__blog-item-image {
    height: 180px;
  }

  .page-promotions__blog-item-title {
    font-size: 1.2em;
  }

  .page-promotions__blog-item-excerpt {
    font-size: 0.9em;
  }
  
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__brand-item,
  .page-promotions__blog-item,
  .page-promotions__cta-buttons,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .page-promotions__video-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-promotions__promo-card-button,
  .page-promotions__view-all-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (min-width: 769px) {
  .page-promotions__main-title {
    font-size: 3.2em;
  }
  .page-promotions__section-title {
    font-size: 2.5em;
  }
  .page-promotions__section-subtitle {
    font-size: 2em;
  }
}