body {
    max-width: 660px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    background-attachment: fixed;
    background-size: 100% 100%;
       /* background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="5" fill="%23FF8C00" opacity="0.3"/><circle cx="80" cy="30" r="4" fill="%232E8B57" opacity="0.3"/><rect x="50" y="70" width="10" height="10" fill="%23FFA500" opacity="0.2" transform="rotate(45 55 75)"/><path d="M10,80 Q20,70 30,80 T50,80" stroke="%233CB371" stroke-width="2" fill="none" opacity="0.3"/><circle cx="70" cy="60" r="6" fill="%23FF8C00" opacity="0.2"/></svg>'); */
    background-size: 200px 200px;
    background-repeat: repeat;
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background: linear-gradient(to right, #FFA500, #FFA500);
    color: #ffffff;
    height: 6vh;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#nav-open {
    display: block;
    position: relative;   
    height: 3vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}



.htsakf-nav-logo img {
    height: 4vh;
    display: block;
}

.htsakf-navbar {
    display: flex;
    color: #fff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

.htsakf-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 35px;
    background: linear-gradient(180deg, #FFA500 0%, #FFA500 100%);
    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.3);
}

.htsakf-menu li {
    position: relative;

}

.htsakf-menu li a:hover {
    color: #FFA500;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.htsakf-menu.open {
    display: flex;
    flex-direction: column;
}

.htsakf-menu.open #nav-open {
    display: none;
}

.htsakf-menu.open #nav-close {
    display: block;
}

.htsakf-menu li a {
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

#htsakf-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}
.htsakf-game-item {
    border-radius: 24px;
    position: relative;
    background: linear-gradient(135deg, #FFD6E7 0%, #C1F0FF 50%, #FFF9C4 100%);
    border: 3px solid #FF9E7D;
    box-shadow: 
        0 10px 25px rgba(255, 158, 125, 0.2),
        0 5px 15px rgba(255, 107, 107, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 装饰小圆点 */
.htsakf-game-item::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #FF9E7D 30%, transparent 31%);
    border-radius: 50%;
    top: -15px;
    left: -15px;
    opacity: 0.3;
    z-index: 0;
}

.htsakf-game-item::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #4ECDC4 30%, transparent 31%);
    border-radius: 50%;
    bottom: -10px;
    right: -10px;
    opacity: 0.3;
    z-index: 0;
}

/* 悬停效果 */
.htsakf-game-item:hover {
    animation-play-state: paused;
    transform: translateY(-8px) scale(1.05) rotate(-2deg);
    border-color: #FF6B6B;
    box-shadow: 
        0 20px 40px rgba(255, 107, 107, 0.3),
        0 10px 20px rgba(78, 205, 196, 0.2),
        0 0 30px rgba(255, 255, 255, 0.6);
}

/* 封面容器 */
.htsakf-game-cover-recommend {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateX(5deg);
    margin: 12px 12px 0;
    border: 2px solid white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.htsakf-game-cover-recommend img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.htsakf-game-item:hover .htsakf-game-cover-recommend img {
    transform: scale(1.1) rotate(1deg);
}

/* 游戏信息区域 */
.htsakf-game-info {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 20px 20px;
    position: relative;
    z-index: 1;
}

.htsakf-game-info p:first-child {
    color: #FF6B6B;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 2px 2px 0 #FFE066;
    letter-spacing: 0.5px;
}

.htsakf-game-info p:last-child {
    color: #4A5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    padding: 8px 0;
    border-top: 2px dotted #FFD166;
}

/* 添加跳跃动画按钮 */
.htsakf-game-item::before {
    content: '🎮 PLAY NOW!';
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #FF6B6B, #FF9E7D);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.htsakf-game-item:hover::before {
    opacity: 1;
    transform: translateY(0);
}

/* 霓虹横条动画 */
@keyframes neonSlide {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}


.htsakf-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius:10px;
    display: block;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.htsakf-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}



.htsakf-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 5px;
}

.htsakf-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: #57606f;
    font-weight: 500;
}

.htsakf-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; */
}

.htsakf-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;

}

.htsakf-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.htsakf-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    background: linear-gradient(90deg, #FFA500, #FFA500);
    border-radius: 10px;
}

.htsakf-common-recommend-title p {
    color: #fff;
    font-size: 1rem;
    margin: 10px 0px;
    font-weight: bold;
}

.htsakf-common-recommend-title img {
    width: 22px;
    height: 22px;
}

.htsakf-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.htsakf-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.htsakf-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: 10px;
    background: linear-gradient(180deg,#FFA500, #FFA500);
    text-align: center;
}

.htsakf-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.htsakf-footer-links a {
    font-size: 0.7em;
    color: 	#fff ;
    text-decoration: none;
}

.htsakf-footer-links a:hover {
    text-decoration: underline;
}

footer .htsakf-copyright {
    font-size: 0.8em;
    color: 	#ffff ;
    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(135deg, #FFA500, #FFA500);
    padding: 0.5rem;
    gap: 10PX;
    border-radius: 10rem;
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
}

#flow:hover {
    background: linear-gradient(135deg, #FFA500, #FFA500);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.htsakf-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%;
}

.htsakf-game-detail-img {
    width: 80%;
}

.htsakf-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
   
}

.htsakf-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;
}

.htsakf-detail-info h2 {
    color: #000;
    font-size: 1rem;
    margin: 10px;
    font-weight: 300;
}

.htsakf-detail-info p {
    color: #000;
    font-size: 1rem;
    margin: 10px 0px;

}

.htsakf-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.htsakf-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background: linear-gradient(135deg, #2E8B57, #3CB371);
    padding: 20px;
    border-radius: 10px;
} 


.htsakf-game-instructions p {
    color: #fff;
    line-height: 1.5rem;
    font-size : 1rem;
}



.htsakf-game-gameplay-button {
    display: flex;
    border-radius: 10px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px; 
    right: -10px;   
}

.htsakf-game-gameplay-button img {
    width: 120px;
    height: 120px;

}
.htsakf-game-gameplay-button p {
    color: #fff;
    margin: 0px;


}

.htsakf-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;
}
.htsakf-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.htsakf-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;
}

.htsakf-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;
}

.htsakf-game-mark img{
    width: 50px;
    height: 25px;
   
}

.htsakf-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;
}

.htsakf-game-new img{
    width: 50px;
    height: 50px;
   
}

.htsakf-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#htsakf-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;
}






