body {
    max-width: 660px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background: white;
    background-repeat:no-repeat;
    background-attachment: fixed; /* 关键点：背景固定 */
    background-size: 100%;
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
     background-color: #fff;
    color: #000000;
    height: 6vh;
    top: 0px;
    z-index: 10;
}

#nav-open {
    display: block;
    position: relative;   
    height: 3vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}



.preppy-nav-logo img {
    height: 4vh;
    display: block;
}

.preppy-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;
}

.preppy-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
    position: absolute;
    align-items: center;
    height: 100vh;
    top: 6vh;
    right: 0px;
    padding: 20px;
    z-index: 10;
    margin: 0;
    list-style-type: none;
    display: none;
}

.preppy-menu li {
    /*position: relative;*/
    padding: 8px;
    width: 100%;
    align-content: center;
    border-radius: 6px;

}

.preppy-menu li a:hover {
    color: #707070;
}

.preppy-menu.open {
    display: flex;
    flex-direction: column;
}

.preppy-menu.open #nav-open {
    display: none;
}

.preppy-menu.open #nav-close {
    display: block;
}

.preppy-menu li a {
    font-size: 1rem;
    color: #000;
    padding-inline: 28px;
    text-decoration: none;
}

#preppy-menu {
    /*animation: fadeIn 0.1s ease-in-out;*/
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}

.Swift-game-item {
    border-radius: 5px;
    background-color: #000;
    position: relative;
}
.Swift-game-item a {
    
    text-decoration: none;
}

.Swift-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.72;
    object-fit: cover;
    border-radius:5px;
    display: block;
    box-shadow: 0px 0px 10px #0e0e0e;
}

.Swift-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.72;
    object-fit: cover;
    border-radius:5px;
    display: block;
    box-shadow: 0px 0px 10px #0e0e0e;

}

.Swift-game-item h3 {
    color: #fff;
    margin: 5px 0px;
    font-size: 0.75rem;

}

.Swift-game-item p {
    color: #000;
    margin: 0px;
    font-size: 1rem;
}

.autocar-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.autocar-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;
}

.common-game-right {
    display: flex;
    width: 20%;
    /* height: 25px; */
    /* background: linear-gradient(to bottom, #4BACEC, #3B0DAA); */
    border-radius: 5px;
    right: 0px;
    justify-content: center;
    align-items: center;
}

.common-game-right img {
    /* width: 60px; */
    /* height: 20px; */
}

.Swift-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;

}

.Swift-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.Swift-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px 10px;
}

.Swift-common-recommend-title p {
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    margin: 10px 0px;
  
}

/*.Swift-common-recommend-title  p::before {*/
/*    content: ""; !* 生成伪元素 *!*/
/*    display: inline-block; !* 确保竖线显示在同一行 *!*/
/*    width: 4px; !* 竖线宽度 *!*/
/*    height: 0.9rem; !* 竖线高度 *!*/
/*    border-radius: 4px;*/
/*    background-color: #51f61a; !* 竖线颜色 *!*/
/*    margin-right: 8px; !* 与文字的间距 *!*/
/*    vertical-align: middle; !* 对齐文字 *!*/
/*}*/

.Swift-common-recommend-title p::before {
    content: ""; /* 保留伪元素 */
    display: inline-block; /* 确保图标与文字在同一行 */
    width: 17px; /* 图标的宽度 */
    height: 17px; /* 图标的高度 */
    margin-right: 5px;
    background-image: url('/img/my_start.png'); /* 替换为图标路径 */
    background-size: contain; /* 确保图标适应容器大小 */
    background-repeat: no-repeat; /* 防止图标重复 */
    vertical-align: middle; /* 对齐文字 */
}

.Swift-common-recommend-title img {
    width: 20px;
    height: 20px;
}

.Swift-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.Swift-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}


.Swift-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;
    background-color: #fff;
    text-align: center;
}

.Swift-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.Swift-footer-links a {
    font-size: 0.7em;
    color: #000;
    text-decoration: none;
    margin: 5px 0px;
}

.Swift-footer-links a:hover {
    text-decoration: underline;
}

footer .Swift-copyright {
    font-size: 0.9em;
    color: #000;
}

#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: #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: #d3d3d3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.Swift-game-detail-title {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: #fff;
    border-radius: 10px;
    margin-inline: 20px;
    margin-top: 20px;
}

.game-detail-iframe {
    width: 100%;
}

.Swift-game-detail-img {
    width: 100%;
}

.Swift-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1.5 / 1;
    display: block;
}

.Swift-detail-info {
     z-index: 5;
     position: absolute;
     width: 100%;
    height: 100%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0px 20px;
    border-radius: 10px;
    background: rgba(14, 14, 14, 0.49);
}

.Swift-detail-info h2 {
    color: #000;
    font-size: 1.2rem;
    margin: 10px;
    font-weight: 300;
}

.Swift-detail-info p {
    color: #ffffff;
    font-size: 1rem;
    padding: 10px;
    margin: 0px;

}

.Swift-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preppy-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background-color: #2A2828;
    padding: 20px;
    border-radius: 10px;
} 


.preppy-game-instructions p {
    color: #fff;
    line-height: 1.5rem;
    font-size : 1rem;
}



.Swift-game-gameplay-button {
    display: flex;
    /* height: 6vh; */
    /* background: linear-gradient(to bottom, #DBD213, #FFC145); */
    border-radius: 10px;
    left: 0px;
    margin: 0px;
    width: 50%;
    justify-content: center;
    align-items: center;
    /* padding: 10px 20px; */
    
}

.Swift-game-gameplay-button img {
    width: 120px;

}
.Swift-game-gameplay-button p {
    color: #fff;
    margin: 0px;


}

.preppy-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;
}
.preppy-news-detail{
    color: #000000;
    background: white;
    text-align: start;
    padding: 1rem;
}
.preppy-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{
    padding: 2rem 1rem;
}

.autocar-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: -10px;
    left: -10px;
}

.autocar-game-mark img{
    width: 50px;
    height: 25px;
   
}

.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;
   
}

.autocar-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#Swift-game-body {
    margin-top: 0vh;
}

.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;
}

.news-tab {
    margin: 10px 0px;
    padding: 15px;
    border-radius: 5px;
}

.news-tab .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}


/*.news-tab .title:before {*/
/*    position: absolute;*/
/*    left: 0;*/
/*    top: 20%;*/
/*    width: 3px;*/
/*    height: 60%;*/
/*    content: "";*/
/*    background-color: #FFAA00;*/
/*    background-image: linear-gradient(180deg, rgba(255, 255, 255, .15), transparent);*/
/*    border-radius: 3px;*/
/*    z-index: 2;*/
/*}*/


.news-tab .title p {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
    flex-grow: 1;
    /*margin-left: 10px;*/
    text-align: left;
}

.news-tab .title a img {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.news-tab .title a {
    text-decoration: none;
}

.news-tab .title a p {
    font-size: 0.9rem;
    cursor: pointer;
    color: #383939;
}

.news-tab .content {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: rgba(234, 234, 234, 0.91);
    background-size: cover;
    background-position: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.news-tab .content a {
    color: #000;
    font-size: 0.8rem;
    line-height: 1.5rem;
    padding: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    /* border-bottom: 1px solid #F1F1F1; */
}

.news-tab .content a:last-child {
    border-bottom: none;
}

.hot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.hot-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 50%;
    box-sizing: border-box;
}

.hot-tab p:first-child {
    position: absolute;
    top: 0px;
    left: 0px;
    margin: 0;
    font-size: 10px;
    color: #fff;
    padding-block: 2px;
    padding-inline: 5px;
    background-color: #4CB571;
    border-radius: 10px 0px 10px 0px;
}

.hot-tab img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.hot-tab p:last-child {
    width: 95%;
    text-align: left;
    position: absolute;
    bottom: 0px;
    margin: 0;
    font-size: 0.8rem;
    padding: 2px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}






