body {
    max-width: 660px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(135deg, #e6f3ff, #f0faff);
    background-attachment: fixed;
    background-size: 100% 100%;
    color: #333;
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background: linear-gradient(135deg, #1e90ff, #4169e1);
    color: #ffffff;
    height: 6vh;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#nav-open {
    display: block;
    position: relative;
    height: 3vh;
    transition: transform 0.2s;
}

#nav-open:hover {
    transform: scale(1.1);
}

#nav-close {
    display: none;
    position: relative;
    height: 4vh;
    transition: transform 0.2s;
}

#nav-close:hover {
    transform: scale(1.1);
}

.lokdef-nav-logo img {
    height: 3vh;
    display: block;
    transition: transform 0.2s;
}

.lokdef-nav-logo img:hover {
    transform: scale(1.05);
}

.lokdef-navbar {
    display: flex;
    background: linear-gradient(135deg, #1e90ff, #4169e1);
    color: #fff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
    border-radius: 0 0 10px 10px;
}

.lokdef-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 30px;
    background-color: #ffffff;
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 6vh;
    right: 0px;
    padding: 30px 1rem;
    z-index: 10;
    margin: 0;
    list-style-type: none;
    display: none;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    border-radius: 10px 0 0 10px;
}

.lokdef-menu li {
    position: relative;
    width: 100%;
}

.lokdef-menu li a {
    font-size: 1rem;
    color: #1e90ff;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lokdef-menu li a:hover {
    color: #4169e1;
    background-color: #f0f8ff;
    text-decoration: none;
    transform: translateX(5px);
}

.lokdef-menu.open {
    display: flex;
    flex-direction: column;
}

.lokdef-menu.open #nav-open {
    display: none;
}

.lokdef-menu.open #nav-close {
    display: block;
}

#lokdef-menu {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.lokdef-game-item {
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.lokdef-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.lokdef-game-item a {
    text-decoration: none;
    display: block;
    height: 100%;
}

.lokdef-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
    transition: transform 0.5s ease;
}

.lokdef-game-item:hover .lokdef-game-cover img {
    transform: scale(1.05);
}

.lokdef-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.lokdef-game-item h3 {
    color: #333;
    margin: 10px 10px 5px 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.lokdef-game-item p {
    color: #666;
    margin: 0 10px 10px 10px;
    font-size: 0.8rem;
}

.lokdef-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 8px;
}

.lokdef-game-info p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: 3em;
    font-size: 0.85rem;
    color: #555;
}

.lokdef-game-info p:last-child {
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

.common-game-right {
    display: flex;
    width: 20%;
    /* height: 25px; */
    /* background: linear-gradient(to bottom, #4BACEC, #3B0DAA); */
    border-radius: 5px;
    right: 0px;
    justify-content: center;
    align-items: center;
}

.common-game-right img {
    /* width: 60px; */
    /* height: 20px; */
}

.lokdef-recomed-div {
    margin: 20px 10px;
    border-radius: 12px;
    padding: 15px 0px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lokdef-detail-recomed-div {
    margin: 15px 20px;
    border-radius: 12px;
    padding: 15px 0px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lokdef-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #1e90ff, #4169e1);
    border-radius: 12px;
    margin: 0px 10px 15px 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.lokdef-common-recommend-title p {
    color: #fff;
    font-size: 1.1rem;
    margin: 0px;
    font-weight: 600;
}

.lokdef-common-recommend-title img {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.lokdef-common-recommend-title img:hover {
    transform: rotate(15deg);
}

.lokdef-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two columns layout */
    gap: 0.75rem;
    /* Gap between items */
}

.lokdef-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two columns layout */
    gap: 0.75rem;
    /* Gap between items */
}

.lokdef-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 15px;
    background: linear-gradient(135deg, #1e90ff, #4169e1);
    text-align: center;
    border-radius: 12px 12px 0 0;
    margin-top: 30px;
}

.lokdef-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px 0;
}

.lokdef-footer-links a {
    font-size: 0.8em;
    color: #ffffff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.lokdef-footer-links a:hover {
    text-decoration: none;
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

footer .lokdef-copyright {
    font-size: 0.8em;
    color: #ffffff;
    margin: 10px 0px;
    opacity: 0.9;
}

#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-color: #fff;
    padding: 0.5rem;
    gap: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#flow:hover {
    background-color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

#back-top, #back-home {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.2s;
}

#back-top:hover, #back-home:hover {
    transform: scale(1.15);
}

.lokdef-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%;
}

.lokdef-game-detail-img {
    width: 80%;
}

.lokdef-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
   
}

.lokdef-detail-info {
    position: relative;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 15px 20px;
    order: 1;
    background-color: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lokdef-detail-info h2 {
    color: #1e90ff;
    font-size: 1.2rem;
    margin: 10px;
    font-weight: 600;
    text-align: center;
}

.lokdef-detail-info p {
    color: #000;
    font-size: 1rem;
    margin: 10px 0px;

}

.lokdef-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.lokdef-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 20px;
    background: linear-gradient(135deg, #e6f3ff, #b3d9ff);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lokdef-game-instructions p {
    color: #000080;
    line-height: 1.6rem;
    font-size: 1rem;
    margin: 8px 0;
}



.lokdef-game-gameplay-button {
    display: flex;
    background: linear-gradient(135deg, #00bfff, #0077be);
    border-radius: 12px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px; 
    right: -10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.lokdef-game-gameplay-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
}

.lokdef-game-gameplay-button img {
    width: 120px;
    height: 120px;
    transition: transform 0.3s ease;
}

.lokdef-game-gameplay-button:hover img {
    transform: rotate(5deg);
}

.lokdef-game-gameplay-button p {
    color: #fff;
    margin: 0px;
    font-weight: 600;
    font-size: 1.1rem;
}

.lokdef-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;
}
.lokdef-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.lokdef-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;
}

.lokdef-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;
}

.lokdef-game-mark img{
    width: 50px;
    height: 25px;
   
}

.lokdef-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;
}

.lokdef-game-new img{
    width: 50px;
    height: 50px;
   
}

.lokdef-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#lokdef-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: #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;
}






