/* style/the-thao.css */

:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --card-bg: #2A1212;
  --page-bg: #140C0C;
  --text-main: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red: #7E0D0D;
}

.page-the-thao {
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--page-bg);
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, shared.css body handles main offset */
}

.page-the-thao__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-the-thao__hero-image-wrap {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-the-thao__hero-content-wrap {
  padding: 0 20px;
  max-width: 900px;
}

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-the-thao__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__hero-cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-the-thao__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-the-thao__btn--primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.4);
}

.page-the-thao__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 176, 74, 0.6);
}

.page-the-thao__btn--secondary {
  background: var(--primary-color);
  color: var(--text-main);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 10px rgba(198, 31, 31, 0.4);
}

.page-the-thao__btn--secondary:hover {
  background: var(--deep-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(198, 31, 31, 0.6);
}

.page-the-thao__section {
  padding: 60px 0;
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-the-thao__section-intro {
  font-size: 1.05rem;
  color: var(--text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-the-thao__feature-grid, 
.page-the-thao__steps-grid, 
.page-the-thao__type-grid, 
.page-the-thao__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-the-thao__feature-card,
.page-the-thao__step-card,
.page-the-thao__type-card,
.page-the-thao__tip-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

.page-the-thao__feature-card:hover,
.page-the-thao__step-card:hover,
.page-the-thao__type-card:hover,
.page-the-thao__tip-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-the-thao__card-title, .page-the-thao__step-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__card-image, .page-the-thao__step-image {
  width: 100%;
  height: auto;
  min-height: 200px;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-the-thao__card-text, .page-the-thao__step-text {
  font-size: 0.95rem;
  color: var(--text-main);
  flex-grow: 1;
}

.page-the-thao__step-number {
  background: var(--button-gradient);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.4);
}

.page-the-thao__btn--small {
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-top: 20px;
}

.page-the-thao__type-card {
  background-color: var(--primary-color);
  border: 1px solid var(--gold-color);
  padding: 30px;
  text-align: left;
  color: var(--text-main);
}

.page-the-thao__type-card .page-the-thao__card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-the-thao__type-card .page-the-thao__card-text {
  font-size: 1rem;
}

.page-the-thao__tips-grid .page-the-thao__tip-card {
  background-color: var(--deep-red);
  border: 1px solid var(--border-color);
}

.page-the-thao__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--gold-color);
  background-color: rgba(255, 255, 255, 0.05);
  user-select: none;
  list-style: none;
}

.page-the-thao__faq-question::-webkit-details-marker {
  display: none;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.page-the-thao__faq-answer p {
  margin: 0;
}

.page-the-thao__conclusion {
  background-color: var(--deep-red);
  padding-top: 50px;
  padding-bottom: 50px;
}

.page-the-thao__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .page-the-thao__hero-content-wrap {
    padding: 0 15px;
  }

  .page-the-thao__section-title {
    font-size: 2.2rem;
  }

  .page-the-thao__section-intro {
    font-size: 1rem;
  }

  .page-the-thao__feature-grid, 
  .page-the-thao__steps-grid, 
  .page-the-thao__type-grid, 
  .page-the-thao__tips-grid {
    gap: 20px;
  }

  .page-the-thao__card-title, .page-the-thao__step-title {
    font-size: 1.3rem;
  }

  .page-the-thao__btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

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

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

@media (max-width: 768px) {
  .page-the-thao {
    padding-top: 10px !important;
    font-size: 16px;
    line-height: 1.6;
  }

  .page-the-thao__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 1. 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-bottom: 30px;
  }

  .page-the-thao__main-title {
    font-size: 2.2rem !important;
    margin-bottom: 15px;
  }

  .page-the-thao__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-the-thao__hero-cta-group {
    flex-direction: column !important;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-the-thao__btn {
    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;
  }

  /* 2. 单栏长文容器 */
  .page-the-thao__section {
    padding: 40px 0;
  }

  .page-the-thao__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 20px;
  }

  .page-the-thao__section-intro {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .page-the-thao__feature-grid, 
  .page-the-thao__steps-grid, 
  .page-the-thao__type-grid, 
  .page-the-thao__tips-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__feature-card,
  .page-the-thao__step-card,
  .page-the-thao__type-card,
  .page-the-thao__tip-card {
    padding: 20px;
  }

  .page-the-thao__card-title, .page-the-thao__step-title {
    font-size: 1.2rem !important;
    margin-bottom: 10px;
  }

  .page-the-thao__card-text, .page-the-thao__step-text {
    font-size: 0.875rem;
  }

  /* 3. 通用图片与 figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-the-thao__hero-image-wrap {
    max-height: 300px;
  }

  /* 4. 按钮与按钮容器 */
  .page-the-thao__btn--small {
    padding: 10px 15px;
    font-size: 0.85rem;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-the-thao__cta-bottom {
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-the-thao__faq-list {
    margin-top: 30px;
  }

  .page-the-thao__faq-question {
    font-size: 0.95rem !important;
    padding: 15px 20px;
  }

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