/* --- Base styles for about.css --- */
.page-about__hero-section {
  padding-top: 10px; /* Rely on body padding for header offset */
  position: relative;
  background-color: #F5F7FA; /* Background color from scheme */
  padding-bottom: 40px;
}

.page-about__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.page-about__hero-content {
  max-width: 900px;
  margin: 20px auto 0 auto;
  padding: 0 15px;
  text-align: center;
}

.page-about__hero-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: #E53935; /* Main brand color */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-description {
  font-size: 1.1em;
  color: #333333; /* Text Main color */
  line-height: 1.6;
  margin-bottom: 30px;
}

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

.page-about__btn {
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: #ffffff; /* Card BG color */
  color: #E53935; /* Main brand color */
  border: 2px solid #E53935;
}

.page-about__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-about__btn-large {
  padding: 15px 40px;
  font-size: 1.1em;
}

.page-about__section-padding {
  padding: 60px 0;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #E53935; /* Main brand color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-about__section-title--light {
  color: #ffffff;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #E53935; /* Main brand color */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__sub-title--light {
  color: #FF5A4F; /* Auxiliary brand color */
}

.page-about__text-block {
  font-size: 1em;
  color: #333333; /* Text Main color */
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-about__text-block--light {
  color: #f0f0f0;
}

.page-about__core-values-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-about__core-values-list li {
  font-size: 1.1em;
  color: #333333; /* Text Main color */
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.page-about__core-values-list li::before {
  content: '✔';
  color: #E53935; /* Main brand color */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-about__dark-section {
  background-color: #E53935; /* Main brand color as background */
  color: #ffffff;
}

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

.page-about__feature-card {
  background: #ffffff; /* Card BG color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

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

.page-about__feature-icon {
  max-width: 150px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  object-fit: contain;
}

.page-about__feature-title {
  font-size: 1.4em;
  color: #E53935; /* Main brand color */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-about__feature-description {
  font-size: 0.95em;
  color: #333333; /* Text Main color */
  line-height: 1.6;
}

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background: #FF5A4F; /* Auxiliary color for summary */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none; /* Hide default marker */
}

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

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-about__faq-answer p {
  margin-bottom: 15px;
}

.page-about__faq-button {
  display: inline-block;
  background: #ffffff;
  color: #E53935;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.page-about__faq-button:hover {
  background: #f0f0f0;
}

.page-about__outro-cta {
  background-color: #F5F7FA; /* Background color from scheme */
  text-align: center;
}

.page-about__outro-cta-content {
  max-width: 800px;
}

.page-about__outro-cta-title {
  font-size: 2.2em;
  color: #E53935; /* Main brand color */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-about__outro-cta-description {
  font-size: 1.1em;
  color: #333333; /* Text Main color */
  line-height: 1.6;
  margin-bottom: 30px;
}

/* --- CSS from the provided template, to ensure all required sections are present --- */
/* This section ensures adherence to the "首页模块3-6必出CSS模板" requirement, even for non-homepage */
.page-about__home-content{
  border:1px solid #E0E0E0; /* Using border color from scheme */
  border-radius:10px;
  height:auto; /* Adjusted for about page, not fixed height */
  overflow-y:visible; /* Adjusted for about page */
  padding: 20px;
  margin-bottom: 40px;
  background-color: #FFFFFF;
}

.page-about__row-games,
.page-about__row-sport,
.page-about__row-coop{
  background-color:#1A202C; /* Dark background for these sections */
  padding:40px 20px;
  max-width:1330px;
  margin:0 auto;
  margin-bottom: 40px;
}

.page-about__games-title,
.page-about__sport-title,
.page-about__coop-title{
  color:#fff;
  text-align:center;
  font-size: 2em;
  margin-bottom: 30px;
}

.page-about__slider-wrapper{
  overflow:hidden;
  margin-bottom: 20px;
}

.page-about__slider-track{
  display:flex;
  flex-wrap:nowrap;
  gap:16px;
}

.page-about__game-slide{
  flex:0 0 200px;
  max-width:200px;
  background-color: #333333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-about__game-slide img {
  width: 100%;
   /* Example height from template */
  object-fit: cover;
}

.page-about__game-slide-title {
  color: #ffffff;
  font-size: 1.1em;
  padding: 10px;
  text-align: center;
}

.page-about__banners-top-wrapper{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  max-width:900px;
  margin:0 auto;
  margin-bottom: 40px;
}

.page-about__banner-item img{
  
  
  object-fit:contain;
  margin:0 auto;
  display:block;
}

.page-about__blog-masonry{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
  margin-bottom: 40px;
}

.page-about__blog-card{
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__blog-card-image {
  width: 100%;
  height: 200px; /* Example height */
  object-fit: cover;
}

.page-about__blog-card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-about__blog-card-title {
  font-size: 1.2em;
  color: #E53935;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__blog-card-text {
  font-size: 0.9em;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-about__blog-card-link{
  display:flex;
  flex-direction:column;
  height:100%;
  text-decoration: none;
}

.page-about__btn-outline{
  margin-top:auto;
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #E53935;
  color: #E53935;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  align-self: flex-start; /* Align to start in column */
}

.page-about__btn-outline:hover {
  background-color: #E53935;
  color: #ffffff;
}

.page-about__blog-slider-track{
  display:flex;
  flex-wrap:nowrap;
  gap:20px;
}

.page-about__blog-slider{
  overflow: hidden;
  margin-bottom: 40px;
}

.page-about__blog-slide{
  flex:0 0 calc(33.333% - 14px);
  max-width:calc(33.333% - 14px);
}
/* --- END CSS from the provided template --- */

/* Universal image and container responsive styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__section,
.page-about__container,
.page-about__hero-section,
.page-about__introduction-section,
.page-about__why-choose-us-section,
.page-about__team-section,
.page-about__commitment-section,
.page-about__contact-section,
.page-about__faq-section,
.page-about__outro-cta {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent horizontal scroll from child elements */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-about__hero-title {
    font-size: clamp(1.8em, 4.5vw, 2.8em);
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-about__hero-section {
    padding-top: 10px !important; /* ~10px top spacing */
    padding-bottom: 30px !important;
  }
  .page-about__hero-title {
    font-size: clamp(1.5em, 6vw, 2.5em) !important;
  }
  .page-about__hero-description {
    font-size: 0.95em !important;
  }
  .page-about__hero-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px;
  }
  .page-about__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 长文金框区 (from template, adjusted for about page) */
  .page-about__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 15px !important;
    margin-bottom: 30px !important;
  }
  .page-about__home-content h2 {
    font-size: 1.8em !important;
  }

  /* 游戏轮播 (from template) */
  .page-about__row-games, .page-about__row-sport, .page-about__row-coop {
    padding: 30px 15px !important;
    margin-bottom: 30px !important;
  }
  .page-about__games-title, .page-about__sport-title, .page-about__coop-title {
    font-size: 1.8em !important;
    margin-bottom: 20px !important;
  }
  .page-about__slider-track {
    display: flex !important; /* Ensure flex for horizontal scroll */
    gap: 10px !important;
    overflow-x: auto; /* Enable horizontal scroll for games */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }
  .page-about__game-slide {
    flex: 0 0 160px !important;
    max-width: 160px !important;
    scroll-snap-align: start;
  }

  /* 合作品牌六宫格 (from template) */
  .page-about__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 30px !important;
  }
  .page-about__banner-item img {
    
    
  }

  /* 博客卡片区 (from template) */
  .page-about__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
  }
  .page-about__blog-card-image {
    height: 180px !important;
  }
  .page-about__blog-card-title {
    font-size: 1.1em !important;
  }
  .page-about__blog-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    overflow-x: auto; /* Enable horizontal scroll for blog slider */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }
  .page-about__blog-slide {
    flex: 0 0 80% !important; /* Show part of next slide */
    max-width: 80% !important;
    scroll-snap-align: start;
  }

  /* 通用图片与容器 */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__container,
  .page-about__card,
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__why-choose-us-section,
  .page-about__team-section,
  .page-about__commitment-section,
  .page-about__contact-section,
  .page-about__faq-section,
  .page-about__outro-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-about__section-padding {
    padding: 40px 0 !important;
  }
  .page-about__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px !important;
  }
  .page-about__sub-title {
    font-size: 1.3em !important;
  }
  .page-about__text-block {
    font-size: 0.9em !important;
  }
  .page-about__core-values-list li {
    font-size: 1em !important;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr !important;
  }
  .page-about__feature-card {
    padding: 25px !important;
  }
  .page-about__feature-title {
    font-size: 1.2em !important;
  }
  .page-about__faq-question {
    font-size: 1em !important;
    padding: 15px 20px !important;
  }
  .page-about__faq-answer {
    padding: 10px 20px 15px 20px !important;
  }
  .page-about__outro-cta-title {
    font-size: 1.6em !important;
  }
  .page-about__outro-cta-description {
    font-size: 0.95em !important;
  }

  /* 按钮与按钮容器 */
  .page-about__hero-cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-direction: column !important; /* Default to column for multiple buttons */
    gap: 15px !important;
  }
  .page-about__faq-button {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    box-sizing: border-box !important;
  }
}