body {
    max-width: 660px;
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(180deg, #FFEEF4 0%, #FFE5F0 100%);
    min-height: 100vh;
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background: linear-gradient(135deg, #4ECDC4 0%, #45B7AA 100%);
    color: #ffffff;
    height: 6vh;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.5);
    position: sticky;
    top: 0;
}

#nav-open {
    display: block;
    position: relative;   
    height: 3vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}



.fhvbfu-nav-logo img {
    height: 4vh;
    display: block;
}

.fhvbfu-navbar {
    display: flex;
    color: #fff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
    height: 100%;
}

.fhvbfu-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 35px;
    background: #FFD166;
    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(255, 209, 102, 0.4);
}

.fhvbfu-menu li {
    position: relative;

}

.fhvbfu-menu li a:hover {
    color: #FF6B6B;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.fhvbfu-menu.open {
    display: flex;
    flex-direction: column;
}

.fhvbfu-menu.open #nav-open {
    display: none;
}

.fhvbfu-menu.open #nav-close {
    display: block;
}

.fhvbfu-menu li a {
    font-size: 1rem;
    color: #2F4F4F;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

#fhvbfu-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}

.fhvbfu-game-item {
    border-radius: 16px;
    position: relative;
    padding: 10px;
    background: linear-gradient(145deg, #ffffff 0%, #FFF5F8 100%);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    border: 3px solid #FF6B6B;
}

.fhvbfu-game-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.fhvbfu-game-item:hover::before {
    opacity: 1;
    left: 100%;
}

.fhvbfu-game-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
    border-color: #4ECDC4;
    border-width: 4px;
}
.fhvbfu-game-item a {
    
    text-decoration: none;
}

.fhvbfu-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(255, 107, 107, 0.2);
}

.fhvbfu-game-item:hover .fhvbfu-game-cover img {
    transform: scale(1.1) rotate(2deg);
}

.fhvbfu-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 107, 107, 0.2);
}

.fhvbfu-game-item h3 {
    color: #FF6B6B;
    margin: 8px 0px;
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);

}

.fhvbfu-game-item p {
    color: #000;
    margin: 0px;
    font-size: 1rem;
}

.fhvbfu-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 5px;
}

.fhvbfu-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.9rem;
    color: #4A4A4A;
    font-weight: 500;
}

.fhvbfu-game-info p:last-child { 
 font-size: 0.8rem;
    color: #777777;
}

.common-game-right {
    display: flex;
    width: 20%;
    height: 30px;
    background: linear-gradient(to right, #2E8B57, #3CB371);
    border-radius: 20px;
    right: 0px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.common-game-right img {
    /* width: 60px; */
    /* height: 20px; */
}

.fhvbfu-recomed-div {
    margin: 20px 15px;
    border-radius: 15px;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.fhvbfu-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.fhvbfu-common-recommend-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
    position: relative;
    overflow: visible;
    margin-bottom: 20px;
    min-height: 65px;
    transition: all 0.3s ease;
}

.fhvbfu-common-recommend-title:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

.fhvbfu-common-recommend-title::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -8%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.fhvbfu-common-recommend-title::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
}

.fhvbfu-common-recommend-title p {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    text-align: center;
    letter-spacing: 1px;
}

.fhvbfu-common-recommend-title img {
    position: relative;
    z-index: 1;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.3));
    width: 26px;
    height: 26px;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.fhvbfu-common-recommend-title:hover img {
    transform: translateX(5px);
}

/* 为不同分类标题添加不同配色 */
#fhvbfu-recommend-content-2 ~ .fhvbfu-common-recommend-title,
.fhvbfu-recomed-div:nth-of-type(2) .fhvbfu-common-recommend-title {
    background: linear-gradient(135deg, #4ECDC4 0%, #45B7AA 100%);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.5);
}

#fhvbfu-recommend-content-2 ~ .fhvbfu-common-recommend-title:hover,
.fhvbfu-recomed-div:nth-of-type(2) .fhvbfu-common-recommend-title:hover {
    box-shadow: 0 12px 35px rgba(78, 205, 196, 0.6);
}

#fhvbfu-recommend-content-3 ~ .fhvbfu-common-recommend-title,
.fhvbfu-recomed-div:nth-of-type(3) .fhvbfu-common-recommend-title {
    background: linear-gradient(135deg, #FFD166 0%, #FFE08E 100%);
    box-shadow: 0 10px 30px rgba(255, 209, 102, 0.5);
}

#fhvbfu-recommend-content-3 ~ .fhvbfu-common-recommend-title p,
.fhvbfu-recomed-div:nth-of-type(3) .fhvbfu-common-recommend-title p {
    color: #2F4F4F;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

#fhvbfu-recommend-content-3 ~ .fhvbfu-common-recommend-title:hover,
.fhvbfu-recomed-div:nth-of-type(3) .fhvbfu-common-recommend-title:hover {
    box-shadow: 0 12px 35px rgba(255, 209, 102, 0.6);
}

#fhvbfu-recommend-content-4 ~ .fhvbfu-common-recommend-title,
.fhvbfu-recomed-div:nth-of-type(4) .fhvbfu-common-recommend-title {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
}

#fhvbfu-recommend-content-4 ~ .fhvbfu-common-recommend-title:hover,
.fhvbfu-recomed-div:nth-of-type(4) .fhvbfu-common-recommend-title:hover {
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

#fhvbfu-recommend-content-5 ~ .fhvbfu-common-recommend-title,
.fhvbfu-recomed-div:nth-of-type(5) .fhvbfu-common-recommend-title {
    background: linear-gradient(135deg, #A78BFA 0%, #C4B5FD 100%);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.5);
}

#fhvbfu-recommend-content-5 ~ .fhvbfu-common-recommend-title:hover,
.fhvbfu-recomed-div:nth-of-type(5) .fhvbfu-common-recommend-title:hover {
    box-shadow: 0 12px 35px rgba(167, 139, 250, 0.6);
}



.fhvbfu-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.fhvbfu-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.fhvbfu-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, #4ECDC4 0%, #45B7AA 100%);
    text-align: center;
    box-shadow: 0 -6px 20px rgba(78, 205, 196, 0.4);
    margin-top: 30px;
}

.fhvbfu-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.fhvbfu-footer-links a {
    font-size: 0.7em;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
}

.fhvbfu-footer-links a:hover {
    text-decoration: underline;
    color: #FFD166;
}

footer .fhvbfu-copyright {
    font-size: 0.8em;
    color: #FFFFFF;
    margin: 10px 0px;
    font-weight: bold;
}

#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(135deg, #FF6B6B 0%, #FF8E8E 100%);
    padding: 0.8rem;
    gap: 12px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    }
}

#flow:hover {
    background: linear-gradient(135deg, #FFD166 0%, #FFE08E 100%);
    box-shadow: 0 8px 25px rgba(255, 209, 102, 0.6);
    transform: scale(1.15) rotate(5deg);
    animation: none;
}

.fhvbfu-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%;
}

.fhvbfu-game-detail-img {
    width: 80%;
}

.fhvbfu-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
   
}

.fhvbfu-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;
}

.fhvbfu-detail-info h2 {
    color: #000;
    font-size: 1rem;
    margin: 10px;
    font-weight: 300;
}

.fhvbfu-detail-info p {
    color: #000;
    font-size: 1rem;
    margin: 10px 0px;

}

.fhvbfu-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.fhvbfu-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background: linear-gradient(135deg, #2E8B57, #3CB371);
    padding: 20px;
    border-radius: 10px;
} 


.fhvbfu-game-instructions p {
    color: #fff;
    line-height: 1.5rem;
    font-size : 1rem;
}



.fhvbfu-game-gameplay-button {
    display: flex;
    background: #FF6B6B;
    border-radius: 12px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px; 
    right: -10px;   
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.fhvbfu-game-gameplay-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.fhvbfu-game-gameplay-button img {
    width: 120px;
    height: 120px;

}
.fhvbfu-game-gameplay-button p {
    color: #fff;
    margin: 0px;


}

.fhvbfu-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;
}
.fhvbfu-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.fhvbfu-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;
}

.fhvbfu-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;
}

.fhvbfu-game-mark img{
    width: 50px;
    height: 25px;
   
}

.fhvbfu-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;
}

.fhvbfu-game-new img{
    width: 50px;
    height: 50px;
   
}

.fhvbfu-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#fhvbfu-game-body {
    margin-top: 30px;
}

.iframe-menu {
    display: flex;
    width: 60%;
    flex-direction: column;
    gap: 35px;
    background: linear-gradient(180deg, #f9fff9, #ffffff);
    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;
    border-left: 3px solid #FF8C00;
}

/* 展开菜单时的导航栏样式 */
.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;
}

/* 添加全局滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFEEF4;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B6B 0%, #4ECDC4 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4ECDC4 0%, #FF6B6B 100%);
}

/* 添加页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fhvbfu-recomed-div {
    animation: fadeInUp 0.6s ease-out;
}

/* 优化游戏卡片的标签样式 */
.fhvbfu-game-mark,
.fhvbfu-game-new {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    padding: 5px 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    border-radius: 0px 0px 12px 0px;
}

.fhvbfu-game-new {
    background: linear-gradient(135deg, #4ECDC4 0%, #45B7AA 100%);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}






