/* style/live.css */
.page-live {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color */
  background-color: #0A0A0A; /* Body background from shared.css */
}

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

.page-live__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding for content, body padding-top from shared.css */
  background-color: #0A0A0A;
  overflow: hidden;
}

.page-live__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for desktop hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-live__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-live__hero-content {
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay for text readability */
  margin-top: -5px; /* Slight overlap to visually connect */
  position: relative;
  z-index: 1;
}

.page-live__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-live__hero-description {
  font-size: 1.1em;
  color: #FFF6D6;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-live__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-live__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-live__text-block strong {
  color: #FFD36B;
}

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

.page-live__card {
  background-color: #111111; /* Card Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.2);
}

.page-live__card-image, .page-live__game-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-live__card-title, .page-live__game-title, .page-live__step-title {
  font-size: 1.5em;
  color: #FFD36B;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-live__card-description, .page-live__game-description, .page-live__step-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #FFF6D6;
  flex-grow: 1;
}

.page-live__btn-primary,
.page-live__btn-secondary,
.page-live__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping for initial state */
  box-sizing: border-box;
}

.page-live__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button Gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-live__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
}

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

.page-live__btn-secondary:hover {
  background-color: #F2C14E;
  color: #0A0A0A;
  transform: translateY(-2px);
}

.page-live__btn-tertiary {
  background-color: #3A2A12;
  color: #FFD36B;
  border: 1px solid #FFD36B;
  margin-top: 20px;
}

.page-live__btn-tertiary:hover {
  background-color: #FFD36B;
  color: #111111;
  transform: translateY(-2px);
}

.page-live__introduction-section, .page-live__security-section, .page-live__getting-started-section, .page-live__cta-section {
  padding: 60px 0;
}

.page-live__features-section, .page-live__game-types-section, .page-live__promo-section, .page-live__experience-section, .page-live__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-live__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

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

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

.page-live__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.page-live__text-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-live__image-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  display: block;
}

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

/* FAQ Styles */
.page-live__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-live__faq-item {
  margin-bottom: 15px;
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #111111;
  cursor: pointer;
  border-bottom: 1px solid #3A2A12;
  transition: background-color 0.3s ease;
}

.page-live__faq-question:hover {
  background-color: #1A1A1A;
}

.page-live__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #FFD36B;
  font-weight: 600;
}

.page-live__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #F2C14E;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-live__faq-item.active .page-live__faq-toggle {
  transform: rotate(45deg);
  color: #FFD36B;
}

.page-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-live__faq-item.active .page-live__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px;
}

.page-live__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
  line-height: 1.6;
}

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

.page-live__faq-answer a {
  color: #F2C14E;
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-live__content-grid {
    grid-template-columns: 1fr;
  }
  .page-live__image-content {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-live__hero-content {
    padding: 30px 15px;
  }

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

  .page-live__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-live__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-live__btn-primary,
  .page-live__btn-secondary,
  .page-live__btn-tertiary {
    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;
  }
  
  .page-live__hero-cta-buttons,
  .page-live__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-live__section-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-live__text-block {
    font-size: 0.95em;
  }

  .page-live__card {
    padding: 20px;
  }

  .page-live__feature-grid, .page-live__game-grid, .page-live__promo-grid, .page-live__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-live__introduction-section, .page-live__security-section, .page-live__getting-started-section, .page-live__cta-section,
  .page-live__features-section, .page-live__game-types-section, .page-live__promo-section, .page-live__experience-section, .page-live__faq-section {
    padding: 40px 0;
  }

  .page-live__container {
    padding: 0 15px;
  }
  
  /* Mobile image responsiveness */
  .page-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-live__section,
  .page-live__card,
  .page-live__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* HERO主图区域的padding-top必须在移动端媒体查询中重新设置 */
  .page-live__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile: controlled by shared's media query */
  }

  .page-live__faq-question {
    padding: 15px 20px;
  }

  .page-live__faq-question h3 {
    font-size: 1.1em;
  }

  .page-live__faq-answer {
    padding: 0 20px;
  }

  .page-live__faq-item.active .page-live__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-live__hero-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }

  .page-live__hero-description {
    font-size: 0.9em;
  }

  .page-live__section-title {
    font-size: clamp(1.4em, 8vw, 1.8em);
  }
}