body {
    max-width: 660px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background-color: #F5F0FF; /* 淡紫色背景 */
    background-image: url('/img/cartoon_bg.svg');
    background-repeat: repeat;
    background-attachment: fixed; /* 关键点：背景固定 */
    background-size: 150px 150px; /* 调整图案大小 */
    background-position: center center;
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    /* background-color: #171717; */
    background-color: #FF9FB2; /* 粉色标题栏 */
    color: #FFFFFF;
    height: 6vh;
    z-index: 10;
}

#nav-open {
    display: block;
    position: relative;   
    height: 3vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}



.lpjvfrbi-nav-logo img {
    height: 3vh;
    display: block;
}

.lpjvfrbi-navbar {
    display: flex;
    /* background: linear-gradient(to right, #100000, #2C2C34); */
    background: linear-gradient(to right, #FF9FB2, #FFC0CB);
    color: #FFFFFF;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

.lpjvfrbi-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;
}

.lpjvfrbi-menu li {
    position: relative;

}

.lpjvfrbi-menu li a:hover {
    color: #ccc;
}

.lpjvfrbi-menu.open {
    display: flex;
    flex-direction: column;
}

.lpjvfrbi-menu.open #nav-open {
    display: none;
}

.lpjvfrbi-menu.open #nav-close {
    display: block;
}

.lpjvfrbi-menu li a {
    font-size: 1rem;
    color: #000;
    text-decoration: none;
}

#lpjvfrbi-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}

.lpjvfrbi-game-item {
    border-radius: 10px;
    position: relative;
    background: #ffffff;
    border: 2px solid #FFD1DC;
    overflow: hidden;
    transition: all 0.3s ease;
}

.lpjvfrbi-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 159, 178, 0.3);
    border-color: #FF69B4;
}

.lpjvfrbi-game-item:hover .lpjvfrbi-game-cover img {
    transform: scale(1.05);
}
.lpjvfrbi-game-item a {
    
    text-decoration: none;
}

.lpjvfrbi-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.lpjvfrbi-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 2px solid #FFD1DC;
    transition: all 0.3s ease;
}

.lpjvfrbi-game-cover-recommend:hover img {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 159, 178, 0.4);
    border-color: #FF69B4;
}

.lpjvfrbi-game-item h3 {
    color: #FF69B4;
    margin: 8px 0px 5px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.lpjvfrbi-game-item p {
    color: #6A0DAD;
    margin: 0px 0px 8px 10px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lpjvfrbi-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 5px;
}

.lpjvfrbi-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: 0.95rem;
    color: #444;
    margin: 0;
    padding: 0 8px;
    transition: color 0.3s ease;
}

.lpjvfrbi-game-info p:last-child { 
    font-size: 0.85rem;
    color: #777777;
    font-style: italic;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.lpjvfrbi-game-item:hover h3 {
    color: #FF1493;
    transform: translateX(2px);
}

.lpjvfrbi-game-item:hover p {
    color: #8A2BE2;
}

.lpjvfrbi-game-item:hover .lpjvfrbi-game-info p {
    color: #333;
}

.lpjvfrbi-game-item:hover .lpjvfrbi-game-info p:last-child {
    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; */
}

.lpjvfrbi-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;

}

.lpjvfrbi-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.lpjvfrbi-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    background: linear-gradient(to right, #FF6347, #FFD700); /* 橙黄色渐变 */
    border-radius: 10px;
}

.lpjvfrbi-common-recommend-title p {
    color: #FFFFFF;
    font-size: 1rem;
    margin: 10px 0px;
    font-weight: bold;
}

.lpjvfrbi-common-recommend-title img {
    width: 22px;
    height: 22px;
}

.lpjvfrbi-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.lpjvfrbi-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.lpjvfrbi-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: #9370DB; /* 紫色页脚 */
    text-align: center;
}

.lpjvfrbi-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.lpjvfrbi-footer-links a {
    font-size: 0.7em;
    color: #FFFFFF;
    text-decoration: none;
}

.lpjvfrbi-footer-links a:hover {
    text-decoration: underline;
    color: #FFFF00;
}

footer .lpjvfrbi-copyright {
    font-size: 0.8em;
    color: #FFFFFF;
    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);
}

.lpjvfrbi-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%;
}

.lpjvfrbi-game-detail-img {
    width: 80%;
}

.lpjvfrbi-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
   
}

.lpjvfrbi-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;
}

.lpjvfrbi-detail-info h2 {
    color: #FF6347;
    font-size: 1.2rem;
    margin: 10px;
    font-weight: bold;
}

.lpjvfrbi-detail-info p {
    color: #6A0DAD;
    font-size: 1rem;
    margin: 10px 0px;

}

.lpjvfrbi-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.lpjvfrbi-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background-color: #FFFACD; /* 淡黄色背景 */
    padding: 20px;
    border-radius: 10px;
    border: 2px dashed #FF9FB2;
} 


.lpjvfrbi-game-instructions p {
    color: #8B4513;
    line-height: 1.5rem;
    font-size : 1rem;
}



.lpjvfrbi-game-gameplay-button {
    display: flex;
    /* height: 6vh; */
    background: linear-gradient(to bottom, #FF6347, #FFD700); /* 橙黄色渐变 */
    border-radius: 10px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px; 
    right: -10px;  
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.lpjvfrbi-game-gameplay-button img {
    width: 120px;
    height: 120px;

}
.lpjvfrbi-game-gameplay-button p {
    color: #fff;
    margin: 0px;


}

.lpjvfrbi-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;
}
.lpjvfrbi-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.lpjvfrbi-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;
}

.lpjvfrbi-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;
}

.lpjvfrbi-game-mark img{
    width: 50px;
    height: 25px;
   
}

.lpjvfrbi-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;
}

.lpjvfrbi-game-new img{
    width: 50px;
    height: 50px;
   
}

.lpjvfrbi-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#lpjvfrbi-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;
}






