body {
    max-width: 660px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(135deg, #FFEFBA 0%, #FFFFFF 100%);
    background-attachment: fixed;
    background-size: 100% 100%;
    color: #293241;
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    color: white;
    height: 6vh;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
}

#nav-open {
    display: block;
    position: relative;   
    height: 3vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}



.hopgam-nav-logo img {
    height: 4vh;
    display: block;
    transition: transform 0.3s ease;
}

.hopgam-nav-logo img:hover {
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

.hopgam-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;
}

.hopgam-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 35px;
    background-color: #fff;
    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;
}

.hopgam-menu li {
    position: relative;

}

.hopgam-menu li a:hover {
    color: #ccc;
}

.hopgam-menu.open {
    display: flex;
    flex-direction: column;
}

.hopgam-menu.open #nav-open {
    display: none;
}

.hopgam-menu.open #nav-close {
    display: block;
}

.hopgam-menu li a {
    font-size: 1rem;
    color: #293241;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}

.hopgam-menu li a:hover {
    background-color: #FF6B35;
    color: white;
    transform: translateX(5px);
}

#hopgam-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 70%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hopgam-game-item {
    border-radius: 5px;
    position: relative;
}
.hopgam-game-item a {
    
    text-decoration: none;
}

.hopgam-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius:5px;
    display: block;
    box-shadow: 0px 0px 10px #888888;
}

.hopgam-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.hopgam-game-item h3 {
    color: #fff;
    margin: 5px 0px;
    font-size: 0.75rem;

}

.hopgam-game-item p {
    color: #000;
    margin: 0px;
    font-size: 1rem;
}

.hopgam-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 5px;
}

.hopgam-game-info p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: 4.5em;
    font-size: 1rem;
    color: #293241;
    font-weight: 500;
}

.hopgam-game-info p:last-child { 
 font-size: 0.8rem;
    color: #555;
}

.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; */
}

.hopgam-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;

}

.hopgam-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.hopgam-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(90deg, #FF6B35 0%, #FF8E53 100%);
    border-radius: 25px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hopgam-common-recommend-title:hover {
    transform: translateY(-2px);
}

.hopgam-common-recommend-title p {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.hopgam-common-recommend-title img {
    width: 22px;
    height: 22px;
}

.hopgam-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px;
    animation: fadeInUp 0.6s ease-out;
}

.hopgam-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 10px;
    animation: fadeInUp 0.6s ease-out;
}

.hopgam-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: 20px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    text-align: center;
    margin-top: 30px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.hopgam-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.hopgam-footer-links a {
    font-size: 0.8em;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 5px;
}

.hopgam-footer-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hopgam-footer-links a:hover {
    text-decoration: underline;
}

footer .hopgam-copyright {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.9);
    margin: 15px 0 5px;
}

#back-top,
#back-home {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

#back-top:hover,
#back-home:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.3);
}

#flow {
    position: fixed;
    bottom: 3rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    padding: 0.8rem;
    gap: 12px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#flow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hopgam-game-detail-title {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 1rem;
    border-radius: 10px;
}

.game-detail-iframe {
    width: 100%;
}

.hopgam-game-detail-img {
    width: 100%;
}

.hopgam-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
   
}

.hopgam-detail-info {
    /* z-index: 15; */
    position: relative;
    /* width: 100%; */
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0px 20px;
    order: 1;
}

.hopgam-detail-info h2 {
    color: #FF6B35;
    font-size: 1.2rem;
    margin: 10px;
    font-weight: 600;
    text-align: center;
}

.hopgam-detail-info p {
    color: #293241;
    font-size: 1rem;
    margin: 10px 0px;
    line-height: 1.6;

}

.hopgam-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.hopgam-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background: linear-gradient(135deg, #00A6FB 0%, #89FC00 100%);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
} 


.hopgam-game-instructions p {
    color: #293241;
    line-height: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}



.hopgam-game-gameplay-button {
    display: flex;
    /* height: 6vh; */
    /* background: linear-gradient(to bottom, #DBD213, #FFC145); */
    border-radius: 10px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px; 
    right: -30px;   
}

.hopgam-game-gameplay-button img {
    width: 120px;
    height: 120px;

}
.hopgam-game-gameplay-button p {
    color: #fff;
    margin: 0px;


}

.hopgam-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: 50px;
    height: 50px;
}
.hopgam-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.hopgam-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: #FF6B35;
    margin-bottom: 20px;
}
.error-page p{
    font-size: 1.1em;
    color: #293241;
    padding: 1rem;
    line-height: 1.6;
    text-align: center;
}
.error-page img{
    width: 100%;
    padding: 2rem 1rem;
}

.hopgam-game-mark {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    background: linear-gradient(135deg, #FFD166 0%, #FF9F1C 100%);
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 10px 10px;
    top: -10px;
    left: -10px;
    padding: 0 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hopgam-game-mark img{
    width: 50px;
    height: 25px;
   
}

.hopgam-game-new {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    background: linear-gradient(135deg, #06D6A0 0%, #118AB2 100%);
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 10px 10px;
    top: 0px;
    left: -10px;
    padding: 0 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hopgam-game-new img{
    width: 50px;
    height: 50px;
   
}

.hopgam-game-mark p {
    color: #293241;
    font-size: 0.9rem;
    margin: 0px 10px;
    font-weight: bold;
}

#hopgam-game-body {
    margin-top: 30px;
}

.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;
}






