/* 首页顶部 Featured Games 区域 */
.home-top-featured-games {
  max-width: 90rem; /* 与max-w-8xl一致 */
  margin-left: auto;
  margin-right: auto;
  margin-top: 0 !important; /* 禁止顶部多余间距 */
  margin-bottom: 0;
  padding-left: 1rem;  /* px-4 */
  padding-right: 1rem;
  padding-bottom: 0.5rem;
  background: transparent;  /* 透明背景，让页面背景透过来 */
}

/* 首页Featured Games区域下方的分割线 */
.home-top-featured-separator {
  height: 0.5px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 10%,
    rgba(255, 255, 255, 0.1) 90%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: none;
  border-radius: 1px;
}

.home-top-featured-progress {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d6fe51 0%, #b6e53a 100%);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 2s cubic-bezier(0.4,0,0.2,1);
}

.home-top-featured-progress.full {
  width: 100%;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

.home-top-featured-games-title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
  padding-top: 1rem;
  margin-left: 0;
  margin-bottom: 0.5rem;
  color: #B0B0B0 !important;
  text-shadow: 0 1px 4px #0008;
  letter-spacing: 0.02em;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.home-top-featured-games-title svg {
  width: 1.25rem; /* w-5 */
  height: 1.25rem; /* h-5 */
  color: #facc15; /* text-yellow-400 */
  margin-right: 0.3rem; /* mr-2 */
}

.home-top-featured-scroll-wrapper {
  position: relative;
  width: 100%;
  min-height: 130px;
  padding: 0;
  margin: 0;
}
.home-top-featured-scroll {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
}
.home-top-featured-scroll::-webkit-scrollbar {
  display: none;
}
.home-top-featured-scroll .game-card {
  flex: 0 0 210px;
  width: 210px;
  height: 116px;
  margin-right: 16px;
  margin-left: 0;
  position: relative;
  background: #f5f5f7;
  border-radius: 12px;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.home-top-featured-scroll .game-card > a {
  display: block;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.home-top-featured-scroll .game-card:first-child {
  margin-left: 0;
}
.home-top-featured-scroll .game-card:last-child {
  margin-right: 0;
}
.home-top-featured-arrow {
  position: absolute;
  top: 0;
  z-index: 10;
  width: 44px;
  height: 100%;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, background 0.18s;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.home-top-featured-arrow.left {
  left: 0;
}
.home-top-featured-arrow.right {
  right: 0;
}
.home-top-featured-scroll-wrapper:hover .home-top-featured-arrow:not(.disabled) {
  opacity: 1;
  pointer-events: auto;
}
.home-top-featured-arrow:not(.disabled):hover {
  background: rgba(0, 0, 0, 0.8);
}
.home-top-featured-arrow.disabled {
  opacity: 0 !important;
  pointer-events: none;
}
.home-top-featured-arrow svg {
  width: 40px;
  height: 40px;
}
.home-top-featured-scroll .game-card .game-preview {
  display: grid;
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.home-top-featured-scroll .game-card .game-preview > * {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-top-featured-scroll .game-card img,
.home-top-featured-scroll .game-card video {
  display: block;
}

/* Home Content Container */
.home-content-container {
  background: transparent; /* 完全透明背景 */
  backdrop-filter: none; /* 去除模糊效果 */
  box-shadow: none; /* 去除阴影 */
  padding: 1.5rem 0; /* 只保留上下内边距，左右内边距由内部容器控制 */
  margin-top: 0 !important; /* 禁止顶部多余间距 */
  margin-bottom: 0;
  width: 100%; /* 确保容器占满页面宽度 */
}

/* Home Hero Section 样式 */
/* 游戏区域H1标题样式 - 与iframe宽度一致 */
.home-hero-primary {
  /* 背景设置为完全透明 */
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border: none; /* border: 1px solid rgba(255, 255, 255, 0.1);  */
  border-radius: 1rem; /* 添加圆角 */
  padding: 2rem 1.5rem 0 1.5rem; /* 上右下左的间距：top-right-bottom-left，底部添加1rem间距 */
  margin: 1rem 0 1.5rem 0;
  height: 130vh;
}

.home-hero-primary h1 {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* H1的文字渐变色元素：background,background-clip,color */
  /* font-family: 'Nunito', sans-serif; */
  font-family: 'Arial', sans-serif;
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 900;
  margin: 1rem 0 1.5rem 0; /* 上右下左的间距：top-right-bottom-left，底部添加1rem间距 */
  flex-shrink: 0;
  width: 100%;
  text-align: left;
}

.home-hero-primary-description {
  color: #b8b8b8;
  margin-bottom: 0;
  line-height: 1.6;
  font-size: 1.1rem;
  font-weight: 400;
}

.home-hero-primary-description.prose strong {
  /* 粗体文本样式 */
  color: #b8b8b8;
  font-weight: 700;
}

.home-hero-primary-description ul {
  list-style-type: disc;
  padding-left: 1.25rem; /* pl-5 */
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: #b8b8b8;
}

.home-hero-primary-description li {
  color: #b8b8b8;
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 0.35rem 0 0 0;
}

/* 列表标记样式 */
.home-hero-primary-description li::marker{
    color: #4ecdc4; /* 使用高亮颜色 */
}

.home-aside-focus {
  background: rgba(255, 255, 255, 0.05); /* 与game-how-to-play背景一致 */
  backdrop-filter: none;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.1); /* 与game-how-to-play边框一致 */
  border-radius: 1.0rem; /* 添加更圆的圆角 */
  padding: 0.5rem 1.5rem 0 1.5rem; /* 上右下左的间距：top-right-bottom-left，底部添加1rem间距 */
  margin: 1rem 0 1.5rem 0;
  height: 130vh;
  /* display: flex; */  /* 取消下拉滚动效果 */
  flex-direction: column;
  justify-content: space-between;
}

.home-aside-focus h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.625rem;
  color: #f5f5f7;
  line-height: 1.2;
  font-weight: 800;
  margin: 1rem 0 0 0; /* 上右下左的间距：top-right-bottom-left，底部添加1rem间距 */
  flex-shrink: 0; /* 防止被挤压 */
  /* H1占据全宽 */
  width: 100%;
  text-align: left; /* 确保左对齐 */
}

.home-aside-focus h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  color: #f5f5f7;
  line-height: 1.2;
  font-weight: 800;
  margin: 2rem 0 1rem 0; /* 调整间距 */
  flex-shrink: 0; /* 防止被挤压 */
  text-align: left; /* 确保左对齐 */
}

.home-aside-focus-text {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0;
}

.home-aside-focus-text h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  color: #b8b8b8;
  line-height: 1.2;
  font-weight: 700;
  margin: 0.3rem 0 0.3rem 0; /* 调整间距 */
  flex-shrink: 0; /* 防止被挤压 */
  text-align: left; /* 确保左对齐 */
}

.home-aside-focus-text p{
  color: #b8b8b8;
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 1.1rem;
  font-weight: 400;
}

.home-aside-focus-text a {
  color: #4ecdc4;
  font-weight: 550;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
  vertical-align: bottom;
}

.home-aside-focus-text a:hover {
  font-weight: 700;
  color: #f5f5f7;
  text-decoration: none; /* 确保悬停时也不显示默认下划线 */
}

.home-aside-focus-text a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #f5f5f7;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  z-index: 10;
}

.home-aside-focus-text a:hover::after {
  width: 90%;
  background-color: #4ecdc4;
}

.home-aside-focus-text p {
  color: #b8b8b8;
}

/* Article 元素样式 */
.home-aside-focus-text article {
  margin-bottom: 1rem;
  padding: 1.1rem 1.2rem 1.1rem 1.4rem; /* top right bottom left, extra left for border */
  border-left: 3px solid #4ecdc4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.home-aside-focus-text article:last-child {
  margin-bottom: 0;
}

.home-aside-focus-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 1rem 0 1.5rem 0; /* 使用 margin 来控制与上方元素的间距 */
  height: 320px; 
  transition: border 0.3s ease; /* 添加过渡效果 */
}

.home-aside-focus-image:hover {
  border: 1px solid #4ecdc4; /* 1px 绿色边框 */
}

.game-preview-label {
  position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3; /* 确保标签在最上层 */
    color: #f5f5f7;
    font-size: 1rem;
    font-weight: bold;
    background: rgba(0,0,0,0.3);
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
    pointer-events: none;
    user-select: none;
}

.home-aside-focus-image img,
.home-aside-focus-image video {
  position: absolute; /* 统一绝对定位 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 1rem;
  object-fit: cover;
}

.home-aside-focus-image img {
    z-index: 1; /* 图片在底层 */
}

.home-aside-focus-image video {
  z-index: 2; /* 视频在上层，但初始不可见 */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-aside-focus-image:hover video {
  opacity: 1;
}

@media (min-width: 640px) {
  .home-top-featured-games {
    padding-left: 1rem; /* 平板端保持1rem */
    padding-right: 1rem;
  }
  
  .home-aside-focus-image {
    max-width: 100%;
  }
}
@media (min-width: 1024px) {
  .home-top-featured-games {
    padding-left: 1.5rem; /* PC端改为1.5rem */
    padding-right: 1.5rem;
  }
  
  .home-aside-focus-image {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .home-top-featured-card, .home-top-featured-scroll > .game-card {
    width: 140px;
    height: 80px;
    flex: 0 0 140px;
  }
  .home-top-featured-games-title {
    font-size: 1.2rem;
    padding-top: 1rem;
    padding-left: 0.5rem;
    margin-left: 0;
  }
  .home-top-featured-scroll {
    gap: 0.5rem;
  }
  .home-top-featured-arrow {
    width: 32px;
  }
  .home-top-featured-arrow svg {
    width: 28px;
    height: 28px;
  }
  
  /* 移动端游戏区域H1标题样式调整 */
  .home-hero-primary {
    padding: 1rem;
    height: 135vh;
  }
  
  .home-hero-primary h1 {
    font-size: 2rem;
  }
  
  /* 移动端home-aside-focus高度调整 */
  .home-aside-focus {
    height: 142vh;
  }
  
  /* .home-hero-primary-description {
    font-size: 0.9rem;
  } */
}

/* 新增容器样式 */
.home-hero-primary-container {
  display: flex;
  flex-direction: column; /* 改为垂直堆叠 */
  gap: 1rem; /* 设置行间距 */
  width: 100%;
  margin-top: 1rem;
}

.home-hero-primary-flag {
  margin-top: 0;
  flex: none; /* 移除flex grow/shrink */
  width: 100%; /* 占据全部宽度 */
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}


.home-hero-primary-flag a {
  color: #4ecdc4;
  font-weight: 550;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
  vertical-align: bottom;
}

.home-hero-primary-flag a:hover {
  font-weight: 700;
  color: #f5f5f7;
  text-decoration: none; /* 确保悬停时也不显示默认下划线 */
}

.home-hero-primary-flag a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #f5f5f7;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  z-index: 10;
}

.home-hero-primary-flag a:hover::after {
  width: 90%;
  background-color: #4ecdc4;
}

/* 游戏统计信息样式 */
.home-hero-primary-flag .game-stats {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}

.home-hero-primary-flag .stat-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 1.25rem;
  font-weight: 600;
  color: #b8b8b8;
}

.home-hero-primary-flag .stat-item:hover {
  transform: none;
}

/* CTA 按钮样式 */
.home-hero-primary-cta {
  display: flex;
  justify-content: center; /* 恢复为居中对齐 */
  align-items: center;
  gap: 1rem; /* 按钮之间的间距 */
  margin-top: 4rem;
  flex-wrap: wrap; /* 在小屏幕上允许换行 */
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 900;
  border-radius: 9999px; /* pill shape */
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  border: 2px solid transparent;
  white-space: nowrap;
}

/* 主 CTA 按钮: Play Lows Adventure 3 */
.cta-button.cta-button-primary {
  background: linear-gradient(135deg, #4ecdc4, #689f38);
  color: #fff;
  /* text-transform: uppercase; */
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 1px;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(139,195,74,0.4);
  padding: 20px 30px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-button.cta-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139,195,74,0.6);
  filter: none;
}

.cta-button.cta-button-primary svg {
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.7em;
  margin-left: 0;
  fill: #fff;
}

/* 次 CTA 按钮: All Unblocked Games */
.cta-button.cta-button-secondary {
  font-weight: 900;
  font-size: 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  letter-spacing: 1px;
  background-color: rgba(26, 26, 46, 0.95); /* 深灰色 */
  color: white;
  border-width: 1px;
  border-color: #b8b8b8;
}

.cta-button.cta-button-secondary:hover {
  background-color: #4b5563;
  border-color: #9ca3af;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(75, 85, 99, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 254, 81, 0.3);
  background-color: #c5ef3a;
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .home-hero-primary-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .home-hero-primary-description,
  .home-hero-primary-flag {
    flex: none;
    width: 100%;
  }
  
  .home-hero-primary-flag .game-stats {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  /* .home-hero-primary-flag .stat-item {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  } */
}

@media (max-width: 768px) {
  .home-top-featured-games {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.25rem;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    max-width: 100vw;
    background-color: #232323;
  }
  .home-top-featured-games-title {
    font-size: 1rem;
    padding-top: 1rem;
    margin-bottom: 0.3rem;
  }
}

/* 响应式：移动端和平板Featured Games左右内边距为0.5rem，PC端为1.5rem */
@media (max-width: 1024px) {
  .home-top-featured-scroll-wrapper {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .home-hero-primary {
    height: 135vh;
  }
  /* 移动端和平板端home-aside-focus高度调整 */
  .home-aside-focus {
    height: 142vh;
  }
} 