body {
    max-width: 660px;
    font-family: 'Arial', sans-serif;
    margin: 0 auto;
    padding: 0;
    background-color: #F0F8FF;
    background-image: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0) 90%);
    /* background-repeat:no-repeat; */

    /* background: url('/img/bo_bg.png'); */
    background-attachment: fixed; /* 关键点：背景固定 */
    /* 关键点：背景固定 */
    background-size: 100% 100%;
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    /* background-color: #171717; */
    background: linear-gradient(135deg, #4B0082 0%, #6A5ACD 100%);
    color: #FFFFFF;
    height: 6vh;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(75, 0, 130, 0.2);
}

#nav-open {
    display: block;
    position: relative;   
    height: 3vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}



.budvyc-nav-logo img {
    height: 4vh;
    display: block;
}

.budvyc-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;
}

.budvyc-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;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    border-left: 2px solid #E6E6FA;
}

.budvyc-menu li {
    position: relative;

}

.budvyc-menu li a:hover {
    color: #836FFF;
    background-color: #F0F8FF;
    transform: translateX(5px);
}

.budvyc-menu.open {
    display: flex;
    flex-direction: column;
}

.budvyc-menu.open #nav-open {
    display: none;
}

.budvyc-menu.open #nav-close {
    display: block;
}

.budvyc-menu li a {
    font-size: 1rem;
    color: #4B0082;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

#budvyc-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}

.budvyc-game-item {
    border-radius: 10px;
    position: relative;
    padding: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #E6E6FA;
    
}
.budvyc-game-item a {
    
    text-decoration: none;
}

.budvyc-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius:8px;
    display: block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.budvyc-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.budvyc-game-item h3 {
    color: #4B0082;
    margin: 8px 0px;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

}

.budvyc-game-item p {
    color: #6A5ACD;
    margin: 0px;
    font-size: 1rem;
    font-weight: 500;
}

.budvyc-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 5px;
}

.budvyc-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: #333;
}

.budvyc-game-info p:last-child { 
 font-size: 0.8rem;
    color: #777777;
}

.common-game-right {
    display: flex;
    width: 20%;
    /* height: 25px; */
    background: linear-gradient(135deg, #4B0082 0%, #836FFF 100%);
    border-radius: 8px;
    right: 0px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 8px rgba(75, 0, 130, 0.2);
    transition: all 0.3s ease;
}

.common-game-right img {
    /* width: 60px; */
    /* height: 20px; */
}

.budvyc-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;

}

.budvyc-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.budvyc-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 15px;
    background: linear-gradient(135deg, #4B0082 0%, #836FFF 100%);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(75, 0, 130, 0.2);
}

.budvyc-common-recommend-title p {
    color: #fff;
    font-size: 1.1rem;
    margin: 12px 0px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.budvyc-common-recommend-title img {
    width: 22px;
    height: 22px;
}

.budvyc-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.budvyc-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.budvyc-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: 15px 10px;
    background: linear-gradient(135deg, #4B0082 0%, #6A5ACD 100%);
    text-align: center;
    box-shadow: 0 -2px 10px rgba(75, 0, 130, 0.1);
}

.budvyc-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.budvyc-footer-links a {
    font-size: 0.7em;
    color: 	#E6E6FA ;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 3px 8px;
    border-radius: 4px;
}

.budvyc-footer-links a:hover {
    text-decoration: none;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

footer .budvyc-copyright {
    font-size: 0.8em;
    color: 	#E6E6FA ;
    margin: 10px 0px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#back-top,
#back-home {
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#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(75, 0, 130, 0.3);
    transition: background-color 0.3s, box-shadow 0.3s;
}

#flow:hover {
    background-color: #E6E6FA;
    box-shadow: 0 4px 8px rgba(75, 0, 130, 0.4);
}

.budvyc-floating-button {
    position: fixed;
    right: 20px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
    background-color: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(75, 0, 130, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(147, 112, 219, 0.1);
}

.budvyc-floating-button a {
    display: block;
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 45px;
    background: linear-gradient(135deg, #4B0082 0%, #836FFF 100%);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(75, 0, 130, 0.2);
}

.budvyc-floating-button a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(75, 0, 130, 0.3);
}

.budvyc-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%;
}

.budvyc-game-detail-img {
    width: 80%;
}

.budvyc-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
   
}

.budvyc-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;
}

.budvyc-game-detail-info h2 {
    color: #4B0082;
    font-size: 1.2rem;
    margin: 15px 0px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.budvyc-game-detail-info p {
    color: #6A5ACD;
    font-size: 1rem;
    margin: 10px 0px;
    line-height: 1.6;
    font-weight: 500;
}

.budvyc-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.budvyc-game-instruction {
    background: linear-gradient(135deg, #F0F8FF 0%, #E6E6FA 100%);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0px;
    border: 1px solid rgba(147, 112, 219, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}


.budvyc-game-instruction h3 {
    color: #4B0082;
    margin: 0px 0px 12px 0px;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.budvyc-game-instruction p {
    color: #4B0082;
    line-height: 1.5rem;
    font-size: 1rem;
    margin-bottom: 12px;
}



.budvyc-game-gameplay-button {
    display: flex;
    /* height: 6vh; */
    background: linear-gradient(to bottom, #4B0082, #836FFF);
    border-radius: 10px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px; 
    right: -10px;   
}

.budvyc-game-gameplay-button img {
    width: 120px;
    height: 120px;

}
.budvyc-game-gameplay-button p {
    color: #fff;
    margin: 0px;
    font-weight: bold;

}

.budvyc-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;
}
.budvyc-news-detail{
    color: #333;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.budvyc-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: #4B0082;
    font-weight: bold;
}
.error-page p{
    font-size: 1.4em;
    color: #6A5ACD;
    padding: 1rem;
    
}
.error-page img{
    width: 100%;
    padding: 2rem 1rem;
}

.budvyc-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;
}

.budvyc-game-mark img{
    width: 50px;
    height: 25px;
   
}

.budvyc-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;
}

.budvyc-game-new img{
    width: 50px;
    height: 50px;
   
}

.budvyc-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#budvyc-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: #4B0082;
    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;
}






