body {
    max-width: 660px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background-color: #FFF9E6;
    background-image: url('/img/bo_bg.png');
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    overflow-x: hidden;
}

/* 卡通背景元素 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, #FFD700 10px, transparent 11px),
        radial-gradient(circle, #FF6B6B 10px, transparent 11px),
        radial-gradient(circle, #4ECDC4 10px, transparent 11px),
        radial-gradient(circle, #FF8C42 10px, transparent 11px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px, 15px 45px, 45px 15px;
    opacity: 0.15;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background: linear-gradient(135deg, #FF6B6B, #FF8C42);
    color: #ffffff;
    height: 7vh;
    z-index: 10;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

#nav-open {
    display: block;
    position: relative;   
    height: 3vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}



.vrfvb-nav-logo img {
    height: 4vh;
    display: block;
}

.vrfvb-navbar {
    display: flex;
    background: linear-gradient(to right, #FF6B6B, #FF8C42);
    color: #fff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

.vrfvb-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;
}

.vrfvb-menu li {
    position: relative;

}

.vrfvb-menu li a:hover {
    color: #ccc;
}

.vrfvb-menu.open {
    display: flex;
    flex-direction: column;
}

.vrfvb-menu.open #nav-open {
    display: none;
}

.vrfvb-menu.open #nav-close {
    display: block;
}

.vrfvb-menu li a {
    font-size: 1rem;
    color: #000;
    text-decoration: none;
}

#vrfvb-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}

.vrfvb-game-item {
    border-radius: 12px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.vrfvb-game-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.25);
}

.vrfvb-game-item a {
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.vrfvb-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.vrfvb-game-item:hover .vrfvb-game-cover img {
    transform: scale(1.05);
}

.vrfvb-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.vrfvb-game-item h3 {
    color: #FF6B6B;
    margin: 8px 0 4px 0;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    padding: 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrfvb-game-item p {
    color: #5A5A5A;
    margin: 0 0 8px 0;
    font-size: 0.7rem;
    text-align: center;
    padding: 0 5px;
}

.vrfvb-game-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 8px 5px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 249, 230, 0.9));
}

.vrfvb-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: #000;
}

.vrfvb-game-info p:last-child { 
 font-size: 0.8rem;
    color: #777777;
}

.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; */
}

.vrfvb-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;

}

.vrfvb-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.vrfvb-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    background: linear-gradient(135deg, #4ECDC4, #45B7D1);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(78, 205, 196, 0.3);
}

.vrfvb-common-recommend-title p {
    color: #fff;
    font-size: 1rem;
    margin: 10px 0px;
    font-weight: bold;
}

.vrfvb-common-recommend-title img {
    width: 22px;
    height: 22px;
}

.vrfvb-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.vrfvb-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.vrfvb-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, #FF8C42, #FF6B6B);
    text-align: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: 20px;
}

.vrfvb-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.vrfvb-footer-links a {
    font-size: 0.7em;
    color: #ffffff;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.vrfvb-footer-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    text-decoration: none;
}

footer .vrfvb-copyright {
    font-size: 0.8em;
    color: #ffffff;
    margin: 10px 0px;
    font-weight: bold;
}

#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);
}

.vrfvb-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%;
}

.vrfvb-game-detail-img {
    width: 80%;
}

.vrfvb-game-detail-img img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
   
}

.vrfvb-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;
}

.vrfvb-detail-info h2 {
    color: #000;
    font-size: 1rem;
    margin: 10px;
    font-weight: 300;
}

.vrfvb-detail-info p {
    color: #000;
    font-size: 1rem;
    margin: 10px 0px;

}

.vrfvb-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.vrfvb-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background: linear-gradient(135deg, #FFE66D, #FFD166);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 214, 109, 0.3);
} 


.vrfvb-game-instructions p {
    color: #333;
    line-height: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}



.vrfvb-game-gameplay-button {
    display: flex;
    background: linear-gradient(135deg, #06D6A0, #118AB2);
    border-radius: 15px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px; 
    right: -10px;
    box-shadow: 0 4px 15px rgba(6, 214, 160, 0.3);
    transition: all 0.3s ease;
}

.vrfvb-game-gameplay-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.4);
}

.vrfvb-game-gameplay-button img {
    width: 120px;
    height: 120px;

}
.vrfvb-game-gameplay-button p {
    color: #fff;
    margin: 0px;


}

.vrfvb-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;
}
.vrfvb-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.vrfvb-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: 100%;
    padding: 2rem 1rem;
}

.vrfvb-game-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B6B, #FF8C42);
    height: 28px;
    position: absolute;
    border-radius: 0px 8px 8px 0px;
    top: 12px;
    left: 0;
    z-index: 5;
    box-shadow: 0 3px 8px rgba(255, 107, 107, 0.3);
    transition: transform 0.3s ease;
}

.vrfvb-game-item:hover .vrfvb-game-mark {
    transform: scale(1.05);
}

.vrfvb-game-mark img {
    width: 45px;
    height: 22px;
    object-fit: contain;
    margin-right: 5px;
}

.vrfvb-game-new {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4ECDC4, #45B7D1);
    height: 32px;
    position: absolute;
    border-radius: 0px 8px 8px 0px;
    top: 12px;
    left: 0;
    z-index: 5;
    box-shadow: 0 3px 8px rgba(78, 205, 196, 0.3);
    transition: transform 0.3s ease;
}

.vrfvb-game-item:hover .vrfvb-game-new {
    transform: scale(1.05);
}

.vrfvb-game-new img {
    width: 45px;
    height: 28px;
    object-fit: contain;
}

.vrfvb-game-mark p {
    color: #fff;
    font-size: 0.7rem;
    margin: 0 8px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#vrfvb-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;
}



}