/* 移动布局 (默认) */
.header-container {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: auto auto;
  grid-template-areas:
    "logo logo"
    "menu menu";
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0;


  justify-items: center;

}



.logo-container { grid-area: logo; }
.main-navigation { grid-area: menu; }





.language-select-wrapper {
  display: none;
}






/* 桌面布局 */
@media (min-width: 992px) {
  



  /* PC端布局 */
  .header-container {
    display: grid;
    grid-template-columns: 30% 45% 25%;
    grid-template-rows: auto auto;
    grid-template-areas:
      "logo"
      "menu";
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem 0;
  
    justify-items: center;
  
  }
  
  
  .logo-container { grid-area: logo; }
  .main-navigation { grid-area: menu; }
  
  
  .logo-container {

    justify-content: flex-start;
    
  }



  

/* ================ 大尺寸布局 ================ */
.main-layout {

 
  width: 100%;

  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: var(--gutter);


  display: grid;
  grid-template-columns: 19% 59% 19%; 

  align-items: start; /* 关键代码 */
 
  
  /* 定义5行来容纳5行内容块 */
  grid-template-rows: auto auto auto; 
  grid-template-areas:
    "area_1 game-showcase area_2"
    "area_1 game-details area_2"
    "area_1 faq area_2"
} 


 

.sidebar-left { grid-area: area_1; }
.game-showcase { grid-area: game-showcase; }
.sidebar-right { grid-area: area_2; }
.game-details { grid-area: game-details; }
.faq { grid-area: faq; }





.sidebar-left-games-grid,
.sidebar-right-games-grid {     
  display: flex;   
  flex-direction: column; /* 改为纵向排列 */
  align-items: center; /* 水平居中对齐（在纵向布局中，这是交叉轴） */
  gap: 1.5rem; /* 元素之间的间距 */   
  margin-bottom: 2rem; 
}


/*

.sidebar-left-games-grid 
.sidebar-right-games-grid {


  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;

}

*/


.game-card {    
  width: 149px;   

  height: auto;
  display: flex;   
  flex-direction: column;  /* 竖向排列 */   
  align-items: center;   
  justify-content: space-between; /* 改为space-between，使标题和图片分开 */   
  gap: 15px; /* 增加子项间距 */   
 
  text-align: center;

  aspect-ratio: 9/10;
}        




/* 图片容器和图片样式 */
.game-card-image-container {
  width: 100%;
  aspect-ratio: 4/3; /* 保持4:3的宽高比 */

  overflow: hidden; /* 添加此行，隐藏超出部分 */


  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto; /* 这会使容器本身在父元素中居中 */

}




.game-card-image-container img {
  width: 189px;  
  height: 100%;
          
  
  object-fit: cover; /* 填满容器 */
  object-position: center; /* 图片居中显示 */
  border-radius: 20px; /* 图片圆角 */
  transition: transform 0.3s ease;  /* 平滑过渡效果 */


}

  /* 可选：悬停效果 */
  .game-card-image-container:hover img {
    transform: scale(1.05);  /* 轻微放大效果 */

}    










.sidebar-left {
  margin-right: 0;
  width: 100%;

  /*
  flex-shrink: 0;
  align-self: flex-start;

  position: sticky;
  top: calc(var(--header-height) + var(--gutter));
  */
}

.sidebar-right {
  margin-left: 0;
  width: 100%;
  /*
  flex-shrink: 0;
  align-self: flex-start;
  */
}



.sidebar-left, .sidebar-right {
  padding: 2rem 0;
  border-top: 1px solid transparent;
  border-image: linear-gradient(
    to right, 
    rgba(99,191,194,0), 
    rgba(99,191,194,0.5) 50%, 
    rgba(99,191,194,0)
  ) 1;
  background: var(--color-background);
}



.sidebar-section {
  background-color: var(--color-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  top: calc(var(--header-height) + var(--gutter));
}









.section-title {
  text-align: left;
}

.section-title::after {
  content: '';

  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(99, 191, 194, 0),
    rgba(99, 191, 194, 0.8),
    rgba(99, 191, 194, 0)
  );
}



.image-to-game {
  width: 100%;
  height: 69vh;
}



.image-placeholder {
  width: 100%;
  height: 100%;

}


.iframe-game-content {
  width: 100%;

}

.iframe-game-content iframe {
  width: 100%;
  height: 100%;
  border: none;


  display: block; /* 确保 iframe 是块级元素，避免底部出现奇怪的空隙 */
  width: 100%;   /* 让 iframe 宽度填满其容器 .iframe-game-content */
  height: auto;  /* 让高度自动计算 */
  aspect-ratio: 4 / 3;
  border: none;
}







.site-header {
  /* position: sticky; */
  top: 0;
}




h1 {
font-size: 1.9rem;
}

h2 {
font-size: 1.5rem;
}

h3 {
font-size: 1.5rem;
}


p {

margin-bottom: 1.3rem;
}







.logo-container {

justify-content: flex-start;

}




/*

.search-container {

justify-content: center;

}




.language-select-wrapper {

justify-content: end;

max-width: 100%;
width: 123px;

}

*/



}
  