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, #00FFC0, #7F00FF,#FF4B4B);
    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;
}



.teoiv-nav-logo img {
    height: 4vh;
    display: block;
}

.teoiv-navbar {
    display: flex;
    color: #fff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

.teoiv-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 35px;
    background: linear-gradient(180deg, #7F00FF 0%, #00FFC0 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);
}

.teoiv-menu li {
    position: relative;

}

.teoiv-menu li a:hover {
    color: #FFA500;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.teoiv-menu.open {
    display: flex;
    flex-direction: column;
}

.teoiv-menu.open #nav-open {
    display: none;
}

.teoiv-menu.open #nav-close {
    display: block;
}

.teoiv-menu li a {
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

#teoiv-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}
/* ================================== */
/* 1. 卡片主体 (.teoiv-game-item) - 简化与优化 */
/* ================================== */
.teoiv-game-item {
    /* 简化基础结构 */
    border-radius: 12px; /* 减小圆角，更现代 */
    position: relative;
    overflow: hidden;

    /* 柔和视觉：纯白背景，细微边框 */
    background-color: #FFFFFF; 
    border: 1px solid #E0E0E0; 

    /* 简化阴影：柔和的抬升感 */
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05), /* 底部阴影 */
        0 1px 3px rgba(0, 0, 0, 0.02); /* 顶部细微阴影 */

    /* 优化过渡和动画 */
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 更平滑的曲线 */
    animation: float-subtle 4s ease-in-out infinite; /* 减弱漂浮 */
}

.teoiv-game-item a{
    text-decoration: none;
}

/* 优化漂浮动画 */
@keyframes float-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); } /* 幅度减小到 -3px */
}

/* 移除原有的 ::before, ::after 装饰小圆点和跳跃按钮，以实现简洁 */
/* 移除 @keyframes neonSlide */


/* 优化悬停效果：强调干净的抬升感，移除旋转 */
.teoiv-game-item:hover {
    animation-play-state: paused;
    transform: translateY(-5px) scale(1.01); /* 轻微抬升和放大 */
    
    /* 突出反馈：使用现代突出色，避免原有的高饱和度卡通红 */
    border-color: #007BFF; /* 示例蓝色，您可以替换为您的品牌色 */
    box-shadow: 
        0 10px 20px rgba(0, 123, 255, 0.2), /* 使用品牌色的柔和投影 */
        0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ================================== */
/* 2. 封面容器 (.teoiv-game-cover-recommend) - 简化与去装饰化 */
/* ================================== */
.teoiv-game-cover-recommend {
    border-radius: 12px 12px 0 0; /* 配合主体圆角 */
    overflow: hidden;
    position: relative;
    
    /* 核心修改：移除透视和旋转，使其平铺 */
    transform: none; 
    
    margin: 0; /* 移除外边距，让封面紧贴卡片边缘 */
    border: none; /* 移除白色边框 */
    box-shadow: none; /* 移除封面阴影 */
}

.teoiv-game-cover-recommend img {
    width: 100%;
    height: 160px; /* 调整高度以适应新的简洁布局 */
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.teoiv-game-item:hover .teoiv-game-cover-recommend img {
    transform: scale(1.05); /* 仅放大，移除旋转 */
}

/* ================================== */
/* 3. 游戏信息区域 (.teoiv-game-info) - 排版与颜色优化 */
/* ================================== */
.teoiv-game-info {
    padding: 18px 20px; /* 调整内边距 */
    background: transparent; /* 移除半透明背景，统一为卡片背景色 */
    border-radius: 0 0 12px 12px; /* 配合主体圆角 */
    position: relative;
    z-index: 1;
}

/* 标题（原 p:first-child）*/
.teoiv-game-info p:first-child {
    /* 字体颜色和字重优化 */
    color: #333333; /* 深灰，高可读性 */
    font-size: 1.2rem;
    font-weight: 700; /* 粗体 */
    margin-bottom: 6px;
    
    /* 核心修改：移除 text-shadow 和 letter-spacing 增加简洁度 */
    text-shadow: none; 
    letter-spacing: 0; 
    
    transition: color 0.3s ease-out;
}

.teoiv-game-item:hover .teoiv-game-info p:first-child {
    color: #007BFF; /* 悬停时标题变为突出色 */
}

/* 描述/摘要 (原 p:last-child) */
.teoiv-game-info p:last-child {
    /* 字体颜色和行高优化 */
    color: #757575; /* 中性灰，柔和的辅助色 */
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
    
    /* 核心修改：移除边框装饰 */
    padding: 0; 
    border-top: none; 
}


.teoiv-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;
}

.teoiv-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}



.teoiv-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 5px;
}

.teoiv-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;
}

.teoiv-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; */
}

.teoiv-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;

}

.teoiv-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.teoiv-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    background: linear-gradient(90deg, #7F00FF, #00FFC0);
    border-radius: 10px;
}

.teoiv-common-recommend-title p {
    color: #fff;
    font-size: 1rem;
    margin: 10px 0px;
    font-weight: bold;
}

.teoiv-common-recommend-title img {
    width: 22px;
    height: 22px;
}

.teoiv-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.teoiv-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.teoiv-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(to right, #00FFC0, #7F00FF,#FF4B4B);
    text-align: center;
}

.teoiv-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.teoiv-footer-links a {
    font-size: 0.7em;
    color: 	#fff ;
    text-decoration: none;
}

.teoiv-footer-links a:hover {
    text-decoration: underline;
}

footer .teoiv-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(to right, #00FFC0, #7F00FF,#FF4B4B);
    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(to right, #00FFC0, #7F00FF,#FF4B4B);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.teoiv-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%;
}

.teoiv-game-detail-img {
    width: 80%;
}

.teoiv-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
   
}

.teoiv-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;
}

.teoiv-detail-info h2 {
    color: #000;
    font-size: 1rem;
    margin: 10px;
    font-weight: 300;
}

.teoiv-detail-info p {
    color: #000;
    font-size: 1rem;
    margin: 10px 0px;

}

.teoiv-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.teoiv-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background: linear-gradient(135deg, #2E8B57, #3CB371);
    padding: 20px;
    border-radius: 10px;
} 


.teoiv-game-instructions p {
    color: #fff;
    line-height: 1.5rem;
    font-size : 1rem;
}



.teoiv-game-gameplay-button {
    display: flex;
    border-radius: 10px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px; 
    right: -10px;   
}

.teoiv-game-gameplay-button img {
    width: 120px;
    height: 120px;

}
.teoiv-game-gameplay-button p {
    color: #fff;
    margin: 0px;


}

.teoiv-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;
}
.teoiv-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.teoiv-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;
}

.teoiv-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;
}

.teoiv-game-mark img{
    width: 50px;
    height: 25px;
   
}

.teoiv-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;
}

.teoiv-game-new img{
    width: 50px;
    height: 50px;
   
}

.teoiv-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#teoiv-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;
}






