body {
    max-width: 820px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background: url('/img/bga1ac19a1a38e2ac340989dbfe3600c9cdaacd9.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* 关键点：背景固定 */
    background-size: 100% 100%;
    /* 关键点：背景大小铺满整个容器 */
}

header {
    width: 100%;
    max-width: 820px;
    display: flex;
    color: #000000;
    height: 6vh;

}

.sa6as-nav-logo img {
    height: 4vh;
}

#search-icon {
    height: 4vh;
}
.sa6as-navbar {
    display: flex;
    /* background: linear-gradient(to right, #100000, #2C2C34); */
    color: #fff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

.sa6as-menu {
    display: flex;
    width: 32%;
    flex-direction: column;
    gap: 35px;
    background: url('/img/bga1ac19a1a38e2ac340989dbfe3600c9cdaacd9.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* 关键点：背景固定 */
    background-size: 100% 100%;
    /* 关键点：背景大小铺满整个容器 */
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 6vh;
    right: 0px;
    padding: 35px 1rem;
    z-index: 10;
    margin: 0;
    list-style-type: none;
    display: none;
}

.sa6as-menu li {
    position: relative;

}

.sa6as-menu li a:hover {
    color: #707070;
}

.sa6as-navbar.open ul {
    display: flex;
    flex-direction: column;
}

.sa6as-navbar.open #nav-open {
    display: none;
}

.sa6as-navbar.open #nav-close {
    display: block;
}

#nav-open {
    display: block;
    position: relative;   
    height: 4vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}

.sa6as-menu li a {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
}


.sa6as-game-item {
    border-radius: 10px;
    position: relative;
    border: #A0A0A0 1px solid;
}
.sa6as-game-item a {
    position: relative;
    text-decoration: none;
}

.sa6as-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius:10px 10px 10px 10px;
    display: block;

}

.sa6as-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 /1;
    object-fit: cover;
    border-radius:10px;
    display: block;

}

.sa6as-game-item h3 {
    color: #fff;
    margin: 5px 0px;
    font-size: 0.75rem;

}

.sa6as-game-item p {
    color: #fff;
    margin: 0px;
    font-size: 1rem;
}

.sa6as-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.sa6as-game-info p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;/* 这个值根据你的需求调整，它决定了每行的高度 */
    max-height: 3em; /* 这是行高的两倍，因为最多显示两行 */
    font-size: 0.8rem;
}

.sa6as-recomed-div {
    padding: 10px 0px;
    margin: 0px 10px;
    border-bottom: #e4e7ed 1px dotted;

}

.sa6as-common-recommend-title {
    display: flex;
    justify-content: start;
    align-items: center;

    /* box-shadow: #b6e05d 5px 5px 5px; */
    /* border-radius: 10px; */
}

.sa6as-common-recommend-title p {
    color: #fff;
    font-size: 1rem;
    padding: 10px 0px;
    margin: 0px 10px;
    text-align: center;
    font-weight: bold;
}

.sa6as-common-recommend-title img {
    width: 20px;
    height: 20px;

}


.sa6as-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two columns layout */
    gap: 10px;
    /* Gap between items */
    margin-top: 10px ;
}

.sa6as-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.game-big-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.game-big-3 {
    grid-column: span 3;
    grid-row: span 3;
}



footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
}

.sa6as-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.sa6as-footer-links a {
    font-size: 0.7em;
    color: #000;
    text-decoration: none;
}

.sa6as-footer-links a:hover {
    text-decoration: underline;
}

footer .sa6as-copyright {
    font-size: 0.8em;
    color: #666;
    margin: 10px 0px;
}

#back-top,
#back-home {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#flow {
    position: fixed;
    bottom: 10rem;
    right: 0.6rem;
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 0.5rem;
    gap: 10PX;
    border-radius: 10rem;
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
}

#flow:hover {
    background-color: #A0A0A0(255, 255, 255, 1.0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}



.sa6as-game-info-div {
    margin: 10px 20px 0px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 10px;
}

.game-detail-iframe {
    width: 100%;
}

.sa6as-game-detail-title-cover {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
}

.sa6as-game-detail-title-cover img {
    width: 80%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

.sa6as-detail-info {
    /* z-index: 15; */
    /* position: absolute; */
    width: 100%;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    margin: 0px 0px 10px 0px;
    gap: 30px;
    order: 1;
}

.sa6as-detail-info h2 {
    color: #fff;
    font-size: 1rem;
    margin: 10px;

}

.sa6as-detail-info p {
    color: #fff;
    font-size: 1rem;
    margin: 10px 5px;

}

.sa6as-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 0px 0px;
    border-radius: 10px;
    order: 2;
} 


.sa6as-game-instructions p {
    color: #fff;
    margin: 0px;
}



.sa6as-game-gameplay-button {
    display: flex;
    /* height: 6vh; */
    /* background: linear-gradient(to bottom, #DBD213, #FFC145); */
    /* border-radius: 10px; */
    justify-content: center;
    align-items: center;
    bottom: 10px;
    position: absolute;
}

.sa6as-game-gameplay-button  img {
    width: 156px;
    height: 60px;
    
}

.sa6as-game-iframe {
    /* width: 100%; */
    /* max-width: 560px; */
    /* margin: 1rem 0; */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100vh;
    position: relative;
}
#iframe-menu-btn  {
    margin-top: 20px;
    margin-left: 60px;
    position: absolute;
    height: 40px;
    height: 40px;
}
#iframe-back-btn {
    margin-top: 20px;
    margin-left: 20px ;
    position: absolute;
    height: 40px;
    height: 40px;
}
.sa6as-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
}
.sa6as-news-detail img{
    width: 100%;
    object-fit: contain;
}

.error-page {

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.error-page h1{
    font-size: 2em;
    color: #000;
}
.error-page p{
    font-size: 1.4em;
    color: #000;
    padding: 1rem;
    
}
.error-page img{
    width: 90%;
    padding: 2rem 1rem;
}

.sa6as-game-mark {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    /* background-color: #000; */
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 10px 10px;
    top: 20px;
    right: 0px;
}

.sa6as-game-mark img{
    width: 80px;
    height: 80px;
   
}

.autocar-game-new {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    /* background-color: #000; */
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 10px 10px;
    top: 0px;
    left: -10px;
}

.autocar-game-new img{
    width: 50px;
    height: 50px;
   
}

.sa6as-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#autocar-game-body {
    margin-top: 8vh;
}

.iframe-menu {
    display: flex;
    width: 60%;
    flex-direction: column;
    gap: 35px;
    background-color: #fff;
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 0vh;
    right: 0px;
    z-index: 8;
    margin: 0;
    list-style-type: none;
    display: none;
    padding: 10px 10px;
}

/* 展开菜单时的导航栏样式 */
.iframe-menu.open {
    display: flex;
    flex-direction: column;
}

.iframe-menu li a {
    font-size: 1rem;
    color: #000;
    text-decoration: none;
}

.iframe-list-item a{
    display: flex;
    flex-direction: row;
    margin: 0px;
    justify-content: space-between;
    align-items: center;
  
}

.iframe-list-item a img {
    margin: 0px;
    height: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

.iframe-list-item a p {
    margin: 0px 20px;
    position: relative;
}

.iframe-list-item-close a{
    display: flex;
    flex-direction: row;
    margin: 0px;
    justify-content: end;
    align-items: center;
  
}

.iframe-list-item-close img {
    margin: 0px;
    height: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}


#iframe-close-btn {
    right: 0px;
    top: 0px;
}



.search-container {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0px 10px;
}

#searchInput {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 20px;
}

#searchButton {
    padding: 20px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background: url('/img/ic_search.png');
    color: #fff;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* #searchButton:hover {
    background-color: #000;
} */


.wrap {
    min-height: 3vh;
    background-color: #fff;
    padding: 10px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 11px;
    position: relative;
    z-index: 30;
    padding: 0px 0px 0px 20px ;
    width: 100%;
}

.search {
    height: 30px;
    color: #000;
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    flex: 1;
}

.search_icon{
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

form {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    overflow: hidden;
    position: relative;
}

.search_wrap {
    background-color: #fff;
    border-radius: 20px;
    color: #fff;
    border: #e4e7ed 1px solid;
}

.search_icon img {
    height: 20px;
}

form input {
    background: transparent;
    flex: 1;
    height: 80%;
    width: 80%;
    touch-action: manipulation;
    outline: none;
    border: none;
    color: #000;
}

form input:hover {
    border: none;
}

.search-close {
    color: #000;
    font-size: 14px;
    /* background-color: #7e20ff; */
    /* outline: none; */
    border: none;
}

.search-res {
    background-color: #fff;
    border-radius: 16px 16px 0 0;
    position: absolute;
    top: 6vh;
    height:94vh;
    width: 100%;
    /* padding: 20px; */
    overflow-y: auto;
    z-index: 30;
    display: flex;
    left: 0px;
    
}

.search-overlay-content {
    padding: 10px;
    height: auto;
}

/* 修改清除按钮的颜色 */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><path  d="m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z" fill="%23000000"></path></svg>') no-repeat center center;
    background-size: contain;
    cursor: pointer;
}

/* Firefox 浏览器 */
input[type="search"]::-moz-clear-button {
    -moz-appearance: none;
    height: 14px;
    width: 14px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><path  d="m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z" fill="%23000000"></path></svg>') no-repeat center center;
    background-size: contain;
    cursor: pointer;
}

/* Internet Explorer 浏览器 */
input[type="search"]::-ms-clear {
    display: none;
}

.sa6as-item {
    display: flex;
    flex-direction: column;
    margin: 10px 0px;
}

.sa6as-item a {
    text-decoration: none;
}

.item-up {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-self: start;
    /* align-items: center; */
}

.item-up p {
    margin: 0px 10px;
    font-size: 1rem;
    color: #000;
}

.item-up img {
    width: 20%;
    object-fit: cover;
    border-radius: 20px;
    height: auto;
    /* 自动高度，用于保持图片比例 */
    aspect-ratio: 1 / 1;
    /* 设置宽高比例为10:6 (宽度的60%) */
    object-fit: cover;
    /* 裁剪超出部分，确保图片始终充满容器 */
    object-position: center;
    /* 图片居中 */
}

.item-down {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* margin: 10px 0px; */
}

.item-down p {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

.item-down-star {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    /* max-width: 35%; */
}

.item-down-star-num {
    border-radius: 10px;
    padding: 1px 0px;
    margin-left: 10px;
    width: 80px;
}

.item-down-star p {
    font-size: 0.8rem;
    text-align: center;
    margin: 0px;
    color: #000;
}

.item-down-star img {
    width: 15px;
    height: 15px;
}

/* styles.css */
/* input[type="search"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 300px;
} */

.sa6as-detail-info-star {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}
.sa6as-detail-info-star img {
    width: 20px;    
    height: 20px;
}
.sa6as-detail-info-star p {
    font-size: 0.8rem;
    margin: 0px 10px;
}








