body {
    max-width: 660px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background-color: #eee;
    background-repeat:repeat;
    background-attachment: fixed; /* 关键点：背景固定 */
    background-size: 100%;
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    /* background-color: #fff; */
    color: #000000;
    height: 6vh;

}

#nav-open {
    display: block;
    position: relative;   
    height: 4vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}



.colcom-nav-logo img {
    height: 4vh;
    display: block;
}

.colcom-navbar {
    display: flex;
    /* background: linear-gradient(to right, #100000, #2C2C34); */
    background: #29cdc3;
    color: #000000;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

.colcom-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 35px;
    background-color: #29cdc3;
    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;
}

.colcom-menu li {
    position: relative;
    border-bottom: 1px solid #fff;
}

.colcom-menu li a:hover {
    color: #000;
}

.colcom-menu.open {
    display: flex;
    flex-direction: column;
}

.colcom-menu.open #nav-open {
    display: none;
}

.colcom-menu.open #nav-close {
    display: block;
}

.colcom-menu li a {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

/* #colcom-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
} */

.colcom-game-item {
    border-radius: 5px;
    /* background-color: #fff; */
    position: relative;
}
.colcom-game-item a {
    
    text-decoration: none;
}

.colcom-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.8;
    object-fit: cover;
    border-radius:5px;
    display: block;

}

.colcom-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.8;
    object-fit: cover;
    border-radius:5px;
    display: block;

}

.colcom-game-item h3 {
    color: #fff;
    margin: 5px 0px;
    font-size: 0.75rem;

}

.colcom-game-item p {
    color: #000;
    margin: 0px;
    font-size: 1rem;
}

.colcom-game-info {
    position: absolute;
    padding: 10px 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background:  rgba(255, 255, 255, 0.8);
    border-radius:5px;
}

.colcom-game-info p {
    display: -webkit-box;
    line-clamp: 2;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;/* 这个值根据你的需求调整，它决定了每行的高度 */
    max-height: 3em; /* 这是行高的两倍，因为最多显示两行 */
    font-size: 0.8rem;
    color: #000000;
}

.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; */
}

.colcom-recomed-div {
    margin: 10px;
    /* background-color: #2A2828; */
    border-radius: 5px;
    padding: 10px 0px;

}

.colcom-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.colcom-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.colcom-common-recommend-title p {
    color: #333;
    font-size: 1rem;
  
}

.colcom-common-recommend-title img {
    width: 30px;
    height: 30px;
}

.colcom-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.colcom-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;
    /* background-color: #2E3237; */
    text-align: center;
}

.colcom-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.colcom-footer-links a {
    font-size: 0.7em;
    color: #004734 ;
    text-decoration: none;
}

.colcom-footer-links a:hover {
    text-decoration: underline;
}

footer .colcom-copyright {
    font-size: 0.8em;
    color: #004734 ;
    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);
}

.colcom-game-detail-title {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-radius: 10px;
}

.game-detail-iframe {
    width: 100%;
}

.colcom-game-detail-title img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.6;
    display: block;
}

.colcom-detail-info {
    /* z-index: 15; */
    position: absolute;
    width: 100%;
    top: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.colcom-detail-info h2 {
    color: #fff;
    font-size: 1rem;
    margin: 10px;
    font-weight: 300;
}

.colcom-detail-info p {
    color: #fff;
    font-size: 1rem;
    margin-top: 20px;

}

.colcom-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.colcom-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background-color: #eee;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 3px 3px rgba(0, 0, 0, 0.3);
}

.colcom-game-instructions p:first-child {
    font-weight: 600;
}

.colcom-game-instructions p {
    color: #333;
    line-height: 1.5rem;
    font-size : 1rem;
    margin: 5px;
}

.colcom-game-gameplay-button {
    display: flex;
    /* height: 6vh; */
    /* background: linear-gradient(to bottom, #DBD213, #FFC145); */
    border-radius: 10px;
    left: 0px;
    margin: 20px 0px;
    width: 30%;
    justify-content: center;
    align-items: center;
    background-color: #3a7361;
    padding: 10px 20px;
    
}

.colcom-game-gameplay-button p {
    color: #fff;
    margin: 0px;
}

.colcom-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;
}
.colcom-news-detail{
    color: #fff;
    text-align: start;
    padding: 1rem;
}
.colcom-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;
}

#colcom-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;
}


/* ---------- */
.custom-btn {
    width: 130px;
    height: 40px;
    color: #fff;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    outline: none;
    line-height: 1.5rem;
    font-size: 1.5rem;
}

.custom-btn-color:before {
    position: absolute;
    display: inline-block;
    top: -180px;
    left: 0;
    width: 30px;
    height: 100%;
    background-color: #fff;
    animation: shiny-btn1 3s ease-in-out infinite;
}

.custom-btn-color {
    font-weight: 600;
    background-color: #89d8d3;
    background-image: linear-gradient(315deg, #89d8d3 0%, #03c8a8 74%);
    border: none;
    z-index: 1;
}
