/* style/sports.css */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-color: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background-color);
}

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

.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #0a192f; /* Dark background for hero section */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  color: #ffffff;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly with image for visual flow, but text is below */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-sports__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-sports__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-sports__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-sports__info-section,
.page-sports__promotions-section,
.page-sports__mobile-app-section,
.page-sports__faq-section {
  padding: 60px 0;
  background-color: var(--background-color);
  color: var(--text-main);
}

.page-sports__dark-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-sports__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
  color: inherit;
}

.page-sports__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: inherit;
}

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

.page-sports__card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-sports__feature-image,
.page-sports__promo-image,
.page-sports__security-icon {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too wide in cards */
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  display: block;
}

.page-sports__security-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
}

.page-sports__feature-title,
.page-sports__promo-title,
.page-sports__security-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-black);
}

.page-sports__feature-text,
.page-sports__promo-text,
.page-sports__security-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

.page-sports__live-betting-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-sports__live-betting-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-sports__live-betting-text {
  flex: 1;
  text-align: left;
}

.page-sports__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-sports__live-betting-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-sports__live-betting-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__live-betting-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-sports__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-sports__security-item {
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.page-sports__security-item h3 {
  color: #ffffff;
}

.page-sports__security-item p {
  color: #f0f0f0;
}

.page-sports__app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-sports__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__app-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-sports__app-text {
  flex: 1;
  text-align: left;
}

.page-sports__app-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.page-sports__app-note {
  font-size: 0.95rem;
  color: #666;
  margin-top: 15px;
}

.page-sports__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  background: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--text-main);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-black);
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-sports__faq-question:hover {
  background-color: #f8f8f8;
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary-color);
}

.page-sports__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  /* For details tag, browser handles visibility */
}

.page-sports__faq-item[open] .page-sports__faq-question {
  background-color: #f0f0f0;
}

.page-sports__cta-final-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
}

.page-sports__cta-final-section .page-sports__section-title {
  color: #ffffff;
}

.page-sports__cta-final-section .page-sports__text-block {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-sports__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }

  .page-sports__live-betting-content,
  .page-sports__app-content {
    flex-direction: column;
    text-align: center;
  }

  .page-sports__live-betting-image-wrapper,
  .page-sports__app-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  .page-sports__live-betting-text,
  .page-sports__app-text {
    text-align: center;
  }

  .page-sports__sub-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__container,
  .page-sports__hero-content,
  .page-sports__cta-buttons,
  .page-sports__live-betting-content,
  .page-sports__app-content,
  .page-sports__features-grid,
  .page-sports__promotions-grid,
  .page-sports__security-grid,
  .page-sports__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports__hero-section,
  .page-sports__info-section,
  .page-sports__dark-section,
  .page-sports__promotions-section,
  .page-sports__mobile-app-section,
  .page-sports__faq-section,
  .page-sports__cta-final-section {
    padding: 40px 0 !important;
  }

  .page-sports__hero-content {
    margin-top: -80px;
    padding: 20px 10px;
  }

  .page-sports__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-sports__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .page-sports__text-block {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-sports__hero-image,
  .page-sports__feature-image,
  .page-sports__promo-image,
  .page-sports__security-icon,
  .page-sports__live-betting-image,
  .page-sports__app-image,
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-sports__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    padding: 12px 15px;
    font-size: 1rem;
  }

  .page-sports__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-sports__hero-content {
    margin-top: -60px;
  }
  .page-sports__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-sports__section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
}