body {
    max-width: 660px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(135deg, #ff3cac 0%, #784ba0 25%, #2b86c5 50%, #00e5ff 75%, #ffd700 100%);
    background-attachment: fixed;
    background-size: 100% 100%;
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background: linear-gradient(to right, #9d50bb 0%, #6e48aa 50%, #ff6b6b 100%);
    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;
}



.xoththd-nav-logo img {
    height: 4vh;
    display: block;
}

.xoththd-navbar {
    display: flex;
    color: #fff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

.xoththd-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 35px;
    background: linear-gradient(180deg, #ff6b6b 0%, #ff9a76 50%, #ffeaa7 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);
}

.xoththd-menu li {
    position: relative;

}

.xoththd-menu li a:hover {
    color: #6a11cb;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.xoththd-menu.open {
    display: flex;
    flex-direction: column;
}

.xoththd-menu.open #nav-open {
    display: none;
}

.xoththd-menu.open #nav-close {
    display: block;
}

.xoththd-menu li a {
    font-size: 1rem;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

#xoththd-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}

.xoththd-game-item {
    border-radius: 10px;
    position: relative;
    padding: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #fff5ff 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid #ff3cac;
}

.xoththd-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 60, 172, 0.3);
    border-color: #9d50bb;
}
.xoththd-game-item a {
    
    text-decoration: none;
}

.xoththd-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;
}

.xoththd-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.xoththd-game-item h3 {
    color: #ff3cac;
    margin: 5px 0px;
    font-size: 0.75rem;
    font-weight: bold;

}

.xoththd-game-item p {
    color: #000;
    margin: 0px;
    font-size: 1rem;
}

.xoththd-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 5px;
}

.xoththd-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;
}

.xoththd-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; */
}

.xoththd-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;

}

.xoththd-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.xoththd-detail-recommend-title {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(90deg, #9d50bb, #6e48aa 50%, #2b86c5);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.xoththd-detail-recommend-title:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.xoththd-detail-recommend-title p {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: bold;
    flex-grow: 1;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.xoththd-common-recommend-title {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(90deg, #9d50bb, #6e48aa 50%, #2b86c5);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.xoththd-common-recommend-title:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.xoththd-common-recommend-title p {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: bold;
    flex-grow: 1;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.xoththd-common-recommend-title img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.xoththd-common-recommend-title img:hover {
    transform: scale(1.1);
}

.xoththd-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.xoththd-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.xoththd-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, #9d50bb, #2b86c5);
    text-align: center;
}

.xoththd-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.xoththd-footer-links a {
    font-size: 0.7em;
    color: 	#ffffff ;
    text-decoration: none;
}

.xoththd-footer-links a:hover {
    text-decoration: underline;
}

footer .xoththd-copyright {
    font-size: 0.8em;
    color: 	#ffffff ;
    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, #ff3cac, #9d50bb);
    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, #ffd700, #ff6b6b);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.xoththd-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%;
}

.xoththd-game-detail-img {
    width: 80%;
}

.xoththd-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
   
}

.xoththd-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;
}

.xoththd-detail-info h2 {
    color: #9d50bb;
    font-size: 1.5rem;
    margin: 15px 10px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f0ff 100%);
    padding: 10px 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.xoththd-detail-info p {
    color: #000;
    font-size: 1rem;
    margin: 10px 0px;

}

.xoththd-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.xoththd-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 20px;
    background: linear-gradient(135deg, #9d50bb 0%, #6e48aa 50%, #2b86c5 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
} 

.xoththd-game-instructions:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.xoththd-game-instructions p {
    color: #fff;
    line-height: 1.6rem;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
}



.xoththd-game-gameplay-button {
    display: flex;
    background: linear-gradient(135deg, #ff3cac, #9d50bb);
    border-radius: 15px;
    margin: 15px;
    width: 60%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -150px; 
    right: 0px;   
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.xoththd-game-gameplay-button:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.xoththd-game-gameplay-button img {
    width: 120px;
    height: 120px;

}
.xoththd-game-gameplay-button p {
    color: #fff;
    margin: 0px;


}

.xoththd-game-iframe {
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 90vh;
    position: relative;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
#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;
}
.xoththd-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.xoththd-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;
}

.xoththd-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;
}

.xoththd-game-mark img{
    width: 50px;
    height: 25px;
   
}

.xoththd-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;
}

.xoththd-game-new img{
    width: 50px;
    height: 50px;
   
}

.xoththd-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#xoththd-game-body {
    margin-top: 30px;
}

.xoththd-promotional-article {
    max-width: 620px;
    margin: 30px auto;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f0ff 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

.xoththd-promotional-article h2 {
    color: #9d50bb;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.xoththd-promotional-article p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.xoththd-promotional-article strong {
    color: #6e48aa;
    font-weight: bold;
}

.xoththd-promotional-article ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.xoththd-promotional-article li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.xoththd-promotional-article li:before {
    content: "✨";
    position: absolute;
    left: 0;
    color: #ff3cac;
}

.xoththd-promotional-article .cta {
    text-align: center;
    margin-top: 30px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff3cac 0%, #9d50bb 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.xoththd-promotional-article .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.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;
}






