
body {
    font-family: 'Verdana', 'Tahoma', 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', 'Arial', sans-serif;
    line-height: 1.6; 
    margin: 0;

}




header {
    padding: 3px;
    text-align: center;
    background-color: #ffcc00;
    
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(2, auto);
    grid-template-areas: 
        "area_1 area_2 area_3"
        "area_4 area_4 area_4"; /* 定义第二行的区域名称 */
        gap: 10px;
  }
  
  
  /* 分别指定每个区域的元素 */
  .logo { grid-area: area_1; }
  .search-input { grid-area: area_2; }
  .language-select { grid-area: area_3; }
  nav { grid-area: area_4; } /* nav 占据第二行的所有区域 */
  
  /* 为 nav 内部的 li 设置 Flex 布局 */
  nav ul {
    display: flex;
    justify-content: space-evenly; 
    list-style: none;
    padding: 0;

  }




li{
    margin: 0;
    flex: 0 0 auto;  /* 防止菜单项被压缩 */
}


header a {
    color: black;
    text-decoration: none;
    font-size: 1.5vw;
}




.layout-container {
    width: 100%;
    display: grid;
    grid-template-columns: 15% 55% 29%; /* 使用百分比 */
    grid-template-areas:
        "area_5 area_6 area_7"
        "area_5 area_8 area_7";
    grid-template-rows: auto 1fr; /* 新增这一行 */
    gap: 1%;

    text-align: center;
}

.aside-left {
    grid-area: area_5;
}

.game-section {
    grid-area: area_6;
}

.aside-right {
    grid-area: area_7;
}

.aside-bottom {
    grid-area: area_8;
}



.h1-and-desc {
    margin-left: 12%;
    margin-right: 12%;
}



.aside-left {
    margin-left: 5%;
    max-width: 100%;
}

.aside-left-section-items {
    
    display: flex;       /* 修改为 flex 布局 */
    flex-direction: column; /* 垂直排列 */
    gap: 1%;           /* 保留间距 */

}


.aside-left-single-item {
    align-self: flex-start; 
    gap: 5px; /* 控制 图片和标题文字 的间距 */

}

.aside-left-image-container {
    width: 100%;
    height: auto;


}

.aside-left-image-container img {
    border-radius: 9%;
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;

}

.aside-left-single-item p {
    text-align: center;
}



.game-section {
    height: auto;
}

.main-game {
    width: 100%;
    display: grid;
    aspect-ratio: 4/3;
}

.game-preview {
    z-index: 2;

}





.game-preview img {
    width: 100%;
    height: auto;
    object-fit: cover; /* 保持比例并填充 */
    aspect-ratio: 4/3;

    border-radius: 4%;
}



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






.aside-right {
    margin-right: 8%;
    max-width: 100%;
    align-self: start; /* 新增这一行 */
    gap: 3%;
}



    
    

.aside-right-section-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3%;

}

.aside-right-single-item {

    flex-basis: calc(50% - 5%/2);  /* 设置每个 item 的基础宽度为 50% 减去 gap 的一半 */
    display: flex;                 /* 使用 Flex 布局 */
    flex-direction: column;        /* 垂直排列 */
    gap: 5px;                     /* 控制 图片和标题文字 的间距 */

    
}

.aside-right-image-container {
    width: 100%;

    overflow: hidden;


}

.aside-right-image-container img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    border-radius: 9%;

}

.aside-right-single-item p {
    text-align: center;
}





.aside-bottom {
    max-width: 100%;
    align-self: start; /* 新增这一行 */
}


.aside-bottom-section-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.aside-bottom-single-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.aside-bottom-image-container {
    width: 100%;
    overflow: hidden;
}

.aside-bottom-image-container img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    border-radius: 9%;
}




.how-to-start {
    margin-left: 9%;
    margin-right: 9%;
    margin-bottom: 20px;
}


.further-details {
    margin-left: 9%;
    margin-right: 9%;
    margin-bottom: 20px;
}


.faq {
    margin-left: 9%;
    margin-right: 9%;
    margin-bottom: 20px;
}



.faq-question {

    margin: 20px 30px;
    font-weight: bold;
}

.faq-answer {
    margin: 20px 30px;

}




.faq-items details summary {
    display: flex; /* 使用 flex 布局 */
    align-items: center; /* 垂直居中 */
}
.faq-items details summary img.arrow {
    height: 1em; /* 设置图片高度与文字高度一致 */
    margin-left: 10px; /* 设置图片与文字之间的间距 */
}



footer {

    margin-bottom: 20px;

    background-color: #33363c;
    color: #fff;

    padding: 20px;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
}

.site-info {
    display: flex;
    flex-wrap: wrap;
    gap: 9%;
    justify-content: center;
    margin-bottom: 15px;
}


.footer-language-support {
    display: flex;
    flex-wrap: wrap;
    gap: 9%;
    justify-content: center;
    margin-bottom: 15px;
}





/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}




.play-button {
    align-self: center;
    z-index: 3;
    pointer-events: none;
    padding: 25px 50px;
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    animation: pulse 2s infinite;
}

.play-button span {
    color: white;
    font-size: 2vw;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}











h1, h2, h3 {
    text-align: center;
    margin: 20px 0;
    font-weight: bold;

  }


h4, h5, h6 {
    text-align: left;
    margin: 20px 0;
    font-weight: bold;
  }
  
  h1 {
    font-size: 1.75em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  h3 {
    font-size: 1.25em;
  }
  
  h4, h5, h6 {
    font-size: 1em; 
  }


p {

    text-align: left;
    margin: 10px 0;
    font-size: 1em; 
    font-weight: normal; /* 确保不加粗 */
    text-indent: 2em;

  }











a {
    text-decoration: none;
    font-size: 1em;
    color: black;
}

a:hover {
    text-decoration: underline;
}






.list-games-page-items {
    margin: 12%;
    max-width: 100%;
    align-self: start;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}




.list-games-page-single-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.list-games-page-single-game-image-container {
    width: 100%;
    overflow: hidden;
}

.list-games-page-single-game-image-container img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    border-radius: 9%;
}






.secrlinks {
    display: none;
}





@media (max-width: 789px) {
    
    
    .layout-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .aside-left {
        display: none;
    }


    .game-section {
        height: auto;
        width: 91%;
    }





    

    .aside-right {
        margin-right: 4%;
        max-width: 100%;
        align-self: start; /* 新增这一行 */
        gap: 3%;
    }






    .aside-bottom {
        max-width: 100%;
        align-self: start; /* 新增这一行 */
    }


    .aside-bottom-section-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    
}  