body {
    max-width: 660px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(110deg, #0072ff, #00c6ff);
    background-attachment: fixed;
    background-size: 100% 100%;
    position: relative;
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background: linear-gradient(90deg, #00c6ff, #0072ff, #ff00e5);
    color: #ffffff;
    height: 6vh;
    z-index: 10;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

#nav-open {
    display: block;
    position: relative;   
    height: 3vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}



.prgih-nav-logo img {
    height: 4vh;
    display: block;
}

.prgih-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;
}

.prgih-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 35px;
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    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;
    border-left: 3px solid #4ecdc4;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
}

.prgih-menu li {
    position: relative;

}

.prgih-menu li a:hover {
    color: #ccc;
}

.prgih-menu.open {
    display: flex;
    flex-direction: column;
}

.prgih-menu.open #nav-open {
    display: none;
}

.prgih-menu.open #nav-close {
    display: block;
}

.prgih-menu li a {
    font-size: 1rem;
    color: #000;
    text-decoration: none;
}

#prgih-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}

.prgih-game-item {
    border-radius: 15px;
    position: relative;
    padding: 5%;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prgih-game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.prgih-game-item a {
    
    text-decoration: none;
}

.prgih-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;
}

.prgih-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.prgih-game-item h3 {
    color: #fff;
    margin: 5px 0px;
    font-size: 0.75rem;

}

.prgih-game-item p {
    color: #000;
    margin: 0px;
    font-size: 1rem;
}

.prgih-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 5px;
}

.prgih-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;
}

.prgih-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; */
}

.prgih-recomed-div {
    margin-top: 15px;
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 20px;
    padding: 10px 0px;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
}

.prgih-recomed-div::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 25%, #ff00e5 50%, #ff6b6b 75%, #ffd93d 100%);
    border-radius: 20px;
    z-index: -1;
}

.prgih-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 20px;
    padding: 10px 0px;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
}

.prgih-detail-recomed-div::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 25%, #ff00e5 50%, #ff6b6b 75%, #ffd93d 100%);
    border-radius: 20px;
    z-index: -1;
}

.prgih-detail-recommend-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 10px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 25%, #ff00e5 50%, #ff6b6b 75%, #ffd93d 100%);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 0px 10px;
}

.prgih-detail-recommend-title p {
    color: #fff;
    font-size: 1.5rem;
    margin: 10px 0px;
    font-weight: bold;
}

.prgih-common-recommend-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 10px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 25%, #ff00e5 50%, #ff6b6b 75%, #ffd93d 100%);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.prgih-common-recommend-title p {
    color: #fff;
    font-size: 1.5rem;
    margin: 10px 0px;
    font-weight: bold;
}

.prgih-common-recommend-title img {
    width: 22px;
    height: 22px;
    position: absolute;
    right: 10px;
}

.prgih-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.prgih-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.prgih-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(180deg, #00c6ff, #0072ff);
    text-align: center;
    border-radius: 20px 20px 0 0;
    margin-top: 30px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.prgih-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.prgih-footer-links a {
    font-size: 0.7em;
    color: 	#ffffff ;
    text-decoration: none;
}

.prgih-footer-links a:hover {
    text-decoration: underline;
}

footer .prgih-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: linear-gradient(180deg, #ffd93d, #ff6b6b);
    padding: 0.8rem;
    gap: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 3px solid white;
}

#flow:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.prgih-game-info-div {
    margin: 10px 20px;
    border-radius: 20px;
    padding: 10px 0px;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
}

.prgih-game-info-div::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 25%, #ff00e5 50%, #ff6b6b 75%, #ffd93d 100%);
    border-radius: 20px;
    z-index: -1;
}

.prgih-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%;
}

.prgih-game-detail-img {
    width: 80%;
}

.prgih-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
   
}

.prgih-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;
}

.prgih-detail-info h2 {
    color: #000;
    font-size: 1rem;
    margin: 10px;
    font-weight: 300;
}

.prgih-detail-info p {
    color: #000;
    font-size: 1rem;
    margin: 10px 0px;

}

.prgih-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.prgih-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 20px;
    background: linear-gradient(135deg, #ff00e5 0%, #ff6b6b 100%);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}


.prgih-game-instructions p {
    color: #fff;
    line-height: 1.5rem;
    font-size : 1rem;
}



.prgih-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: -10px;   
}

.prgih-game-gameplay-button img {
    width: 120px;
    height: 120px;

}
.prgih-game-gameplay-button p {
    color: #fff;
    margin: 0px;


}

.prgih-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;
}
.prgih-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.prgih-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;
}

.prgih-about-section {
    margin: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.prgih-about-section::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 25%, #ff00e5 50%, #ff6b6b 75%, #ffd93d 100%);
    border-radius: 20px;
    z-index: -1;
}

.prgih-about-section h2 {
    color: #0072ff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.prgih-about-section h3 {
    color: #ff00e5;
    font-size: 1.4rem;
    margin: 20px 0 10px 0;
}

.prgih-about-section h4 {
    color: #ff6b6b;
    font-size: 1.2rem;
    margin: 15px 0 8px 0;
}

.prgih-about-section p {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.prgih-about-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.prgih-about-section li {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.prgih-about-section li::before {
    content: "⭐";
    position: absolute;
    left: 0;
    color: #ffd93d;
}

.prgih-category-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.category-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prgih-call-to-action {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 25%, #ff00e5 50%, #ff6b6b 75%, #ffd93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 30px;
    padding: 10px;
}

.prgih-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;
}

.prgih-game-mark img{
    width: 50px;
    height: 25px;
   
}

.prgih-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;
}

.prgih-game-new img{
    width: 50px;
    height: 50px;
   
}

.prgih-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#prgih-game-body {
    margin-top: 30px;
}

.iframe-menu {
    display: flex;
    width: 60%;
    flex-direction: column;
    gap: 35px;
    background: linear-gradient(180deg, #ffffff, #e8f5e9);
    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;
}






