body {
    max-width: 660px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background-color: #7495cc;
    background-attachment: fixed;
    background-size: 100% 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 105, 180, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(138, 43, 226, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 30% 80%, rgba(255, 165, 0, 0.2) 0%, transparent 30%),
        linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(72, 61, 139, 0.1) 100%);
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #FFFFFF;
    height: 6vh;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(106, 17, 203, 0.5);
}

#nav-open {
    display: block;
    position: relative;   
    height: 3vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}



.nvifdv-nav-logo img {
    height: 4vh;
    display: block;
}

.nvifdv-navbar {
    display: flex;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #FFFFFF;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

.nvifdv-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;
}

.nvifdv-menu li {
    position: relative;

}

.nvifdv-menu li a:hover {
    color: #ccc;
}

.nvifdv-menu.open {
    display: flex;
    flex-direction: column;
}

.nvifdv-menu.open #nav-open {
    display: none;
}

.nvifdv-menu.open #nav-close {
    display: block;
}

.nvifdv-menu li a {
    font-size: 1rem;
    color: #6a11cb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

.nvifdv-menu li a:hover {
    color: #2575fc;
    text-shadow: 0 2px 8px rgba(37, 117, 252, 0.3);
}

#nvifdv-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}

.nvifdv-game-item {
    border-radius: 12px;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 215, 0, 0.2);
    overflow: hidden;
}

.nvifdv-game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF1493, #9370DB, #6a11cb, #2575fc);
}

.nvifdv-game-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.nvifdv-game-item a {
    
    text-decoration: none;
}

.nvifdv-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius:12px;
    display: block;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.nvifdv-game-cover img:hover {
    transform: scale(1.05);
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
}

.nvifdv-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.nvifdv-game-item h3 {
    color: #fff;
    margin: 5px 0px;
    font-size: 0.75rem;

}

.nvifdv-game-item p {
    color: #000;
    margin: 0px;
    font-size: 1rem;
}

.nvifdv-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 5px;
}

.nvifdv-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: #2D3436;
}

.nvifdv-game-info p:last-child { 
 font-size: 0.8rem;
    color: #636E72;
}

.common-game-right {
    display: flex;
    width: 20%;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 5px;
    right: 0px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.common-game-right img {
    /* width: 60px; */
    /* height: 20px; */
}

.nvifdv-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;

}

.nvifdv-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.nvifdv-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    background: linear-gradient(135deg, #FF1493, #9370DB);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 3px 15px rgba(255, 20, 147, 0.4);
}

.nvifdv-common-recommend-title p {
    color: #fff;
    font-size: 1rem;
    margin: 10px 0px;
    font-weight: bold;
}

.nvifdv-common-recommend-title img {
    width: 22px;
    height: 22px;
}

.nvifdv-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.nvifdv-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.nvifdv-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: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    text-align: center;
    margin-top: 30px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.5);
}

.nvifdv-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.nvifdv-footer-links a {
    font-size: 0.7em;
    color: 	#FFD700;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.nvifdv-footer-links a:hover {
    color: #FFA500;
    text-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}

.nvifdv-footer-links a:hover {
    text-decoration: underline;
}

footer .nvifdv-copyright {
    font-size: 0.8em;
    color: 	#FFD700;
    margin: 10px 0px;
    text-shadow: 0 1px 5px rgba(255, 215, 0, 0.2);
}

#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: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    padding: 0.5rem;
    gap: 10PX;
    border-radius: 10rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

#flow:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ffe4b5 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.nvifdv-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%;
}

.nvifdv-game-detail-img {
    width: 100%;
}

.nvifdv-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
   
}

.nvifdv-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;
}

.nvifdv-detail-info h2 {
    color: #2D3436;
    font-size: 1rem;
    margin: 10px;
    font-weight: 300;
}

.nvifdv-detail-info p {
    color: #2D3436;
    font-size: 1rem;
    margin: 10px 0px;

}

.nvifdv-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.nvifdv-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background: linear-gradient(135deg, #8A2BE2, #4B0082);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}


.nvifdv-game-instructions p {
    color: #FFFFFF;
    line-height: 1.5rem;
    font-size : 1rem;
}



.nvifdv-game-gameplay-button {
    display: flex;
    /* height: 6vh; */
    background: linear-gradient(45deg, #FF6347, #FFD700);
    border-radius: 10px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px; 
    right: -30px;  
    box-shadow: 0 6px 25px rgba(255, 99, 71, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.nvifdv-game-gameplay-button img {
    width: 120px;
    height: 120px;

}
.nvifdv-game-gameplay-button p {
    color: #fff;
    margin: 0px;


}

.nvifdv-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;
}
.nvifdv-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.nvifdv-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: #2D3436;
}
.error-page p{
    font-size: 1.4em;
    color: #2D3436;
    padding: 1rem;
    
}
.error-page img{
    width: 100%;
    padding: 2rem 1rem;
}

.nvifdv-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;
}

.nvifdv-game-mark img{
    width: 50px;
    height: 25px;
   
}

.nvifdv-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;
}

.nvifdv-game-new img{
    width: 50px;
    height: 50px;
   
}

.nvifdv-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#nvifdv-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: #6a11cb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

.iframe-menu li a:hover {
    color: #2575fc;
    text-shadow: 0 2px 8px rgba(37, 117, 252, 0.3);
}

.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;
}






