body {
    max-width: 660px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background-color: #90EE90;
    background-image: 
        linear-gradient(135deg, #90EE90 0%, #3CB371 35%, #20B2AA 70%, #87CEFA 100%),
        radial-gradient(circle at 20% 30%, rgba(173, 255, 47, 0.8) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(144, 238, 144, 0.7) 0%, transparent 30%);
    background-attachment: fixed;
    background-size: 100% 100%, 150% 150%, 150% 150%;
    background-blend-mode: overlay, normal, normal;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><circle cx="30" cy="30" r="3" fill="%23ffffff" opacity="0.5"/><circle cx="90" cy="90" r="3" fill="%23ffffff" opacity="0.5"/><rect x="45" y="45" width="30" height="30" fill="none" stroke="%23ffffff" stroke-width="1" opacity="0.4" rx="5"/></svg>');
    background-size: 240px;
    background-repeat: repeat;
    background-blend-mode: overlay;
    opacity: 0.3;
    z-index: -1;
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background: linear-gradient(90deg, #20B2AA, #3CB371, #90EE90);
    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;
}



.cvalsw-nav-logo img {
    height: 4vh;
    display: block;
}

.cvalsw-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;
}

.cvalsw-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 35px;
    background: linear-gradient(180deg, #ffffff, #e6fff3);
    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 #3CB371;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
}

.cvalsw-menu li {
    position: relative;

}

.cvalsw-menu li a:hover {
    color: #3CB371;
}

.cvalsw-menu.open {
    display: flex;
    flex-direction: column;
}

.cvalsw-menu.open #nav-open {
    display: none;
}

.cvalsw-menu.open #nav-close {
    display: block;
}

.cvalsw-menu li a {
    font-size: 1rem;
    color: #000;
    text-decoration: none;
}

#cvalsw-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}

.cvalsw-game-item {
    border-radius: 18px;
    position: relative;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 255, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(144, 238, 144, 0.2);
}

.cvalsw-game-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(144, 238, 144, 0.5);
}

.cvalsw-game-item:hover .cvalsw-game-cover-recommend img {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(144, 238, 144, 0.8);
    transform: scale(1.02);
}
.cvalsw-game-item a {
    
    text-decoration: none;
}

.cvalsw-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;
}

.cvalsw-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.cvalsw-game-item h3 {
    color: #fff;
    margin: 5px 0px;
    font-size: 0.75rem;

}

.cvalsw-game-item p {
    color: #000;
    margin: 0px;
    font-size: 1rem;
}

.cvalsw-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 8px 5px 5px;
    gap: 4px;
}

.cvalsw-game-info p:first-child {
    font-weight: 600;
    font-size: 0.95rem;
    color: #3CB371;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cvalsw-game-info p:last-child { 
    font-size: 0.75rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
    opacity: 0.8;
}

.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; */
}

.cvalsw-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;

}

.cvalsw-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.cvalsw-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    background: linear-gradient(90deg, #20B2AA, #3CB371, #90EE90);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cvalsw-common-recommend-title p {
    color: #fff;
    font-size: 1rem;
    margin: 10px 0px;
    font-weight: bold;
}

.cvalsw-common-recommend-title img {
    width: 22px;
    height: 22px;
}

.cvalsw-common-recommend-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
    background: linear-gradient(135deg, #E6FFF3 0%, #F0FFF8 100%);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(144, 238, 144, 0.2);
    margin-bottom: 15px;
}

.cvalsw-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 15px;
    /* Gap between items */
    background: linear-gradient(135deg, #F0FFF8 0%, #FFFFFF 100%);
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(144, 238, 144, 0.15);
    margin-bottom: 15px;
}

.cvalsw-game-big-2 {
    grid-column: span 2;
    grid-row: span 2;
    border-radius: 22px;
}

.cvalsw-game-big-2 .cvalsw-game-cover-recommend img {
    border-radius: 18px;
    aspect-ratio: 10 / 9;
}

.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, #90EE90, #3CB371);
    text-align: center;
    border-radius: 20px 20px 0 0;
    margin-top: 30px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.cvalsw-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.cvalsw-footer-links a {
    font-size: 0.7em;
    color: 	#fff ;
    text-decoration: none;
}

.cvalsw-footer-links a:hover {
    text-decoration: underline;
}

footer .cvalsw-copyright {
    font-size: 0.8em;
    color: 	#fff ;
    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, #20B2AA, #90EE90);
    padding: 0.8rem;
    gap: 10px;
    border-radius: 1rem;
    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);
}

.cvalsw-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%;
}

.cvalsw-game-detail-img {
    width: 80%;
}

.cvalsw-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
   
}

.cvalsw-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;
}

.cvalsw-detail-info h2 {
    color: #000;
    font-size: 1rem;
    margin: 10px;
    font-weight: 300;
}

.cvalsw-detail-info p {
    color: #000;
    font-size: 1rem;
    margin: 10px 0px;

}

.cvalsw-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.cvalsw-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 20px;
    background: linear-gradient(135deg, #3CB371 0%, #20B2AA 100%);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}


.cvalsw-game-instructions p {
    color: #fff;
    line-height: 1.5rem;
    font-size : 1rem;
}



.cvalsw-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;   
}

.cvalsw-game-gameplay-button img {
    width: 120px;
    height: 120px;

}
.cvalsw-game-gameplay-button p {
    color: #fff;
    margin: 0px;


}

.cvalsw-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;
}
.cvalsw-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.cvalsw-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;
}

.cvalsw-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;
}

.cvalsw-game-mark img{
    width: 50px;
    height: 25px;
   
}

.cvalsw-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;
}

.cvalsw-game-new img{
    width: 50px;
    height: 50px;
   
}

.cvalsw-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#cvalsw-game-body {
    margin-top: 30px;
}

.iframe-menu {
    display: flex;
    width: 60%;
    flex-direction: column;
    gap: 35px;
    background: linear-gradient(180deg, #ffffff, #e6fff3);
    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;
}






