/* style/register.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #002244; /* Slightly darker than primary for contrast */
  --border-color: #e0e0e0;
}

.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: #ffffff; /* Assuming default body background is white */
}

/* --- Global Section Styling --- */
.page-register__section {
  padding: 60px 20px;
  text-align: center;
}

.page-register__dark-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-register__dark-section h1,
.page-register__dark-section h2,
.page-register__dark-section h3 {
  color: var(--text-light);
}

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

/* --- Video Section --- */
.page-register__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* 🚨 顶部间距以公用片段约定为准，使用 var(--header-offset)，避免被固定页头盖住 */
  padding-top: var(--header-offset, 120px);
  background-color: var(--background-dark); /* Dark background for video section */
  color: var(--text-light);
}

.page-register__video-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold title */
}

.page-register__video-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  text-align: center;
  color: var(--text-light);
}

.page-register__video-container {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Adjusted max-width for video */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

.page-register__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.25);
}

.page-register__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* 防止视频控件阻止点击事件 */
  filter: none !important; /* Ensure no filter is applied */
}

/* 🚨 视频点击提示遮罩层样式（可选，增强用户体验） */
.page-register__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.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

.page-register__video-click-hint {
  color: var(--text-light);
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  background: rgba(255, 215, 0, 0.8); /* Gold with transparency */
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

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

.page-register__play-now-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

/* --- Title Section (H1 + CTA) --- */
.page-register__title-section {
  padding: 80px 20px;
  background-color: var(--background-light);
  color: var(--text-dark);
  text-align: center;
}

.page-register__title-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-register__main-title {
  font-size: 42px;
  color: var(--primary-color);
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-register__title-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-dark);
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-register__cta-button {
  display: inline-block;
  padding: 16px 45px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrap for desktop */
}

.page-register__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-register__cta-button--primary:hover {
  background: #002a52; /* Darker primary */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

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

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
  margin-top: 50px;
}

.page-register__benefit-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-register__benefit-item:hover {
  transform: translateY(-5px);
}

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

.page-register__benefit-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* --- FAQ Section --- */
.page-register__faq-section {
  padding: 80px 20px;
  background-color: var(--background-dark);
  color: var(--text-light);
  text-align: center;
}

.page-register__faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-register__faq-main-title {
  font-size: 38px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-register__faq-intro-text {
  font-size: 18px;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-register__faq-list {
  text-align: left;
}

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #002a52; /* Slightly lighter dark blue for FAQ item background */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-register__faq-question:hover {
  background: #002a52;
  border-color: #001f3f;
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--text-light);
}

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Plus to X for active state */
}

.page-register__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;
  opacity: 0;
  background-color: #002a52; /* Slightly darker for answer background */
  color: #c0c0c0;
  border-radius: 0 0 8px 8px;
}