body {
    max-width: 660px;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', cursive;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 25%, #e8eaf6 50%, #e1f5fe 75%, #e0f7fa 100%);
    background-attachment: fixed;
    background-size: cover;
    color: #333;
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    color: #ff4081;
    height: 7vh;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4);
    border-radius: 0 0 20px 20px;
}

#nav-open {
    display: block;
    position: relative;   
    height: 3vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}



.lpqefit-nav-logo img {
    height: 4vh;
    display: block;
}

.lpqefit-navbar {
    display: flex;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    color: #ff4081;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

.lpqefit-menu {
    display: flex;
    width: 60%;
    flex-direction: column;
    gap: 30px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffebee 100%);
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 7vh;
    right: 0px;
    padding: 30px 1rem;
    z-index: 10;
    margin: 0;
    list-style-type: none;
    display: none;
    border-radius: 0 0 0 30px;
    box-shadow: -8px 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #ffb6c1;
}

.lpqefit-menu li {
    position: relative;

}

.lpqefit-menu li a:hover {
    color: #ccc;
}

.lpqefit-menu.open {
    display: flex;
    flex-direction: column;
}

.lpqefit-menu.open #nav-open {
    display: none;
}

.lpqefit-menu.open #nav-close {
    display: block;
}

.lpqefit-menu li a {
    font-size: 1.2rem;
    color: #ff4081;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #ffcdd2;
}

.lpqefit-menu li a:hover {
    color: #e91e63;
    background-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
    text-shadow: 0 2px 5px rgba(255, 64, 129, 0.5);
}

#lpqefit-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}

.lpqefit-game-item {
    border-radius: 25px;
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #fce4ec 30%, #f3e5f5 100%);
    padding: 4%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 3px solid #ffb6c1;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 192, 203, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 192, 203, 0.3) 0%, transparent 20%);
    background-size: 20px 20px, 30px 30px;
}

.lpqefit-game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #ffd1dc, #fbc2eb);
}

.lpqefit-game-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: #ff8fab;
    background-color: #fff;
}
.lpqefit-game-item a {
    
    text-decoration: none;
}

.lpqefit-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 3px solid #ffd1dc;
    background-color: #fff;
}

.lpqefit-game-cover img:hover {
    transform: scale(1.08) rotate(2deg);
    border-radius: 25px;
    box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.25);
    border-color: #ffb6c1;
}

.lpqefit-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    border: 3px solid #ffd1dc;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background-color: #fff;
}

.lpqefit-game-cover-recommend img:hover {
    transform: scale(1.08) rotate(2deg);
    border-radius: 25px;
    box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.25);
    border-color: #ffb6c1;
}

.lpqefit-game-item h3 {
    color: #ff6f00;
    margin: 8px 0px;
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(255, 111, 0, 0.3);
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 5px 10px;
    border-radius: 15px;
    border: 2px solid #ffcc80;
    display: inline-block;
}

.lpqefit-game-item p {
    color: #333;
    margin: 0px;
    font-size: 1rem;
    font-weight: 500;
}

.lpqefit-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    margin-top: 10px;
    border: 2px solid #ffe0b2;
}

.lpqefit-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: #e65100;
    font-weight: 500;
}

.lpqefit-game-info p:last-child { 
 font-size: 0.85rem;
    color: #ff8f00;
    font-weight: bold;
    background-color: rgba(255, 235, 59, 0.3);
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid #ffeb3b;
    margin-top: 5px;
}

.common-game-right {
    display: flex;
    width: 20%;
    background: linear-gradient(45deg, #ff6b9d, #ff8c00);
    border-radius: 5px;
    right: 0px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

.common-game-right img {
    /* width: 60px; */
    /* height: 20px; */
}

.lpqefit-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;

}

.lpqefit-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.lpqefit-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fbc2eb 50%, #ffcdd2 100%);
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.3);
    margin: 10px;
    border: 3px solid #ffb6c1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 30%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 30%);
    background-size: 50px 50px, 60px 60px;
}

.lpqefit-common-recommend-title p {
    color: #e91e63;
    font-size: 1.2rem;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.lpqefit-common-recommend-title img {
    width: 22px;
    height: 22px;
}

.lpqefit-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.lpqefit-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.lpqefit-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, #fce4ec 0%, #f3e5f5 50%, #e8eaf6 100%);
    text-align: center;
    margin-top: 30px;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #ffb6c1;
}

.lpqefit-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 15px;
}

.lpqefit-footer-links a {
    font-size: 0.8em;
    color: #ff4081;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #ffcdd2;
    margin: 5px;
    display: inline-block;
}

.lpqefit-footer-links a:hover {
    color: #e91e63;
    background-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
    text-shadow: 0 2px 5px rgba(255, 64, 129, 0.5);
    text-decoration: none;
}

footer .lpqefit-copyright {
    font-size: 0.8em;
    color: #ff4081;
    margin: 10px 0px;
    text-shadow: 0 2px 8px rgba(255, 64, 129, 0.3);
}

#back-top,
#back-home {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    border-radius: 50%;
    border: 2px solid #ff6f00;
    box-shadow: 0 4px 15px rgba(255, 213, 79, 0.4);
}

#back-top:hover,
#back-home:hover {
    transform: scale(1.2) rotate(10deg);
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    box-shadow: 0 6px 25px rgba(255, 213, 79, 0.6);
}

#flow {
    position: fixed;
    bottom: 10rem;
    right: 0.6rem;
    display: none;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #fff9c4 0%, #fff3e0 100%);
    padding: 10px;
    gap: 15px;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(255, 213, 79, 0.4);
    transition: all 0.3s ease;
    border: 3px solid #ffcc80;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

#flow:hover {
    background: linear-gradient(135deg, #ffe082 0%, #ffd54f 100%);
    box-shadow: 0 12px 40px rgba(255, 213, 79, 0.6);
    transform: translateY(-10px) scale(1.1);
    animation: none;
}

.lpqefit-game-detail-title {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 1rem;
    border-radius: 30px;
    background: linear-gradient(135deg, #fff9c4 0%, #fff3e0 50%, #ffebee 100%);
    margin: 20px 10px;
    border: 3px solid #ffcc80;
    box-shadow: 0 8px 25px rgba(255, 213, 79, 0.3);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 213, 79, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(255, 213, 79, 0.2) 0%, transparent 25%);
    background-size: 40px 40px, 50px 50px;
}

.game-detail-iframe {
    width: 100%;
}

.lpqefit-game-detail-img {
    width: 100%;
    padding: 10px;
}

.lpqefit-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 25px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
    border: 3px solid #ffb6c1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.lpqefit-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;
}

.lpqefit-detail-info h2 {
    color: #ff6b9d;
    font-size: 1rem;
    margin: 10px;
    font-weight: 300;
}

.lpqefit-detail-info p {
    color: #4b0082;
    font-size: 1rem;
    margin: 10px 0px;

}

.lpqefit-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.lpqefit-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 20px;
    background: linear-gradient(135deg, #fff9c4 0%, #fff3e0 50%, #ffebee 100%);
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(255, 213, 79, 0.3);
    border: 3px solid #ffcc80;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(255, 193, 7, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 85% 85%, rgba(255, 193, 7, 0.2) 0%, transparent 20%);
    background-size: 30px 30px, 40px 40px;
}


.lpqefit-game-instructions p {
    color: #ff6f00;
    line-height: 1.5rem;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(255, 111, 0, 0.2);
}



.lpqefit-game-gameplay-button {
    display: flex;
    /* height: 6vh; */
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 50%, #ff9800 100%);
    border-radius: 25px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px; 
    right: -30px;  
    box-shadow: 0 8px 30px rgba(255, 235, 59, 0.6);
    border: 3px solid #ffeb3b;
    transition: all 0.3s ease;
}

.lpqefit-game-gameplay-button:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 40px rgba(255, 235, 59, 0.8);
}

.lpqefit-game-gameplay-button img {
    width: 120px;
    height: 120px;

}
.lpqefit-game-gameplay-button p {
    color: #fff;
    margin: 0px;


}

.lpqefit-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;
}
.lpqefit-news-detail{
    color: #4b0082;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.lpqefit-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: #ff6b9d;
}
.error-page p{
    font-size: 1.4em;
    color: #4b0082;
    padding: 1rem;
    
}
.error-page img{
    width: 100%;
    padding: 2rem 1rem;
}

.lpqefit-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;
}

.lpqefit-game-mark img{
    width: 50px;
    height: 25px;
   
}

.lpqefit-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;
}

.lpqefit-game-new img{
    width: 50px;
    height: 50px;
   
}

.lpqefit-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#lpqefit-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;
}






