body {
    max-width: 660px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><rect width='100' height='100' fill='%23fdf6f0'/><circle cx='20' cy='25' r='5' fill='%23ff4d4d' opacity='0.3'/><circle cx='60' cy='40' r='4' fill='%23ff4d4d' opacity='0.25'/><circle cx='80' cy='70' r='6' fill='%23ff4d4d' opacity='0.2'/><circle cx='35' cy='80' r='3' fill='%23ff4d4d' opacity='0.3'/></svg>");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;






}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    /* background: linear-gradient(to right, #3b82f6, #3b82f6); */
    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;
}



.axdp-nav-logo img {
    height: 4vh;
    display: block;
}

.axdp-navbar {
    display: flex;
    color: #fff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

.axdp-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 35px;
    background: #db4545;
    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);
}

.axdp-menu li {
    position: relative;

}

.axdp-menu li a:hover {
    color: #FFA500;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.axdp-menu.open {
    display: flex;
    flex-direction: column;
}

.axdp-menu.open #nav-open {
    display: none;
}

.axdp-menu.open #nav-close {
    display: block;
}

.axdp-menu li a {
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

#axdp-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}

.axdp-game-item {
    border-radius: 8px;
    position: relative;
    /* padding: 20px; */
    background: linear-gradient(135deg, #db4545 0%, #db4545 100%);
    border: 2px solid #cfe3ff;
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.35s ease;
    overflow: hidden;
}



.axdp-game-item:hover::before {
    transform: scaleX(1);
}

/* hover 效果：上浮 + 阴影增强 */
.axdp-game-item:hover {
    transform: translateY(-6px);
    border-color: #3b82f6;
    box-shadow: 
        0 12px 30px rgba(59, 130, 246, 0.25),
        0 6px 12px rgba(0, 0, 0, 0.08);
}

/* 链接样式 */
.axdp-game-item a {
    text-decoration: none;
}

/* 标题：深蓝色 */
.axdp-game-item h3 {
    color: #1e40af;
    margin: 8px 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* 描述：灰蓝色，清晰易读 */
.axdp-game-item p {
    color: #fff;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}


.axdp-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;
}

.axdp-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}



.axdp-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 5px;
}

.axdp-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;
}

.axdp-game-info p:last-child { 
 font-size: 0.8rem;
    color: #fff;
}

.common-game-right {
    display: flex;
    width: 20%;
    height: 30px;
    background: linear-gradient(to right, #3b82f6, #3b82f6);
    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; */
}

.axdp-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;

}

.axdp-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.axdp-common-recommend-title {
    display: flex;
    justify-content: space-between;
    background-color: #db4545;
    align-items: center;
    padding: 0px 10px;
    border-radius: 10px;
}

.axdp-common-recommend-title p {
    color: #fff;
    font-size: 1rem;
    margin: 10px 0px;
    font-weight: bold;
}

.axdp-common-recommend-title img {
    width: 22px;
    height: 22px;
}

.axdp-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.axdp-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.axdp-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;
    background-color: #db4545;
    align-items: center;
    padding: 10px;
    text-align: center;
}

.axdp-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.axdp-footer-links a {
    font-size: 0.7em;
    color: 	#ffffff ;
    text-decoration: none;
}

.axdp-footer-links a:hover {
    text-decoration: underline;
}

footer .axdp-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(90deg, #db4545, #db4545);
    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;
}



.axdp-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%;
}

.axdp-game-detail-img {
    width: 80%;
}

.axdp-game-detail-img img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
   
}

.axdp-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;
}

.axdp-detail-info h2 {
    color: #000;
    font-size: 1rem;
    margin: 10px;
    font-weight: 300;
}

.axdp-detail-info p {
    color: #000;
    font-size: 1rem;
    margin: 10px 0px;

}

.axdp-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.axdp-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background: linear-gradient(135deg, #2E8B57, #3CB371);
    padding: 20px;
    border-radius: 10px;
} 


.axdp-game-instructions p {
    color: #fff;
    line-height: 1.5rem;
    font-size : 1rem;
}



.axdp-game-gameplay-button {
    display: flex;
    border-radius: 10px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -80px; 
    /* right: -10px;    */
}

.axdp-game-gameplay-button img {
    width: 152px;
    height: 60px;

}
.axdp-game-gameplay-button p {
    color: #fff;
    margin: 0px;


}

.axdp-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;
}
.axdp-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.axdp-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;
}

.axdp-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;
}

.axdp-game-mark img{
    width: 50px;
    height: 25px;
   
}

.axdp-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;
}

.axdp-game-new img{
    width: 50px;
    height: 50px;
   
}

.axdp-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#axdp-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;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0px 10px;
}

#searchInput {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 20px;
}

#searchButton {
    padding: 20px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background: url('/img/ic_search.png');
    color: #fff;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* #searchButton:hover {
    background-color: #000;
} */


.wrap {
    min-height: 3vh;
    /* background-color: #fff; */
    padding: 10px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 11px;
    position: relative;
    z-index: 30;
    padding: 0px 0px 0px 20px ;
    width: 100%;
}

.search {
    height: 30px;
    color: #000;
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    flex: 1;
}

.search_icon{
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

form {
    width: 75%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    overflow: hidden;
    position: relative;
}

.search_wrap {
    background-color: #fff;
    border-radius: 20px;
    color: #fff;
    border: #e4e7ed 1px solid;
}

.search_icon img {
    height: 20px;
}

form input {
    background: transparent;
    flex: 1;
    height: 80%;
    width: 80%;
    touch-action: manipulation;
    outline: none;
    border: none;
    color: #000;
}

form input:hover {
    border: none;
}

.search-close {
    color: #000;
    font-size: 14px;
    /* background-color: #7e20ff; */
    /* outline: none; */
    border: none;
}

.search-res {
    background-color: #fff;
    border-radius: 16px 16px 0 0;
    position: absolute;
    top: 6vh;
    height:94vh;
    width: 100%;
    /* padding: 20px; */
    overflow-y: auto;
    z-index: 30;
    display: flex;
    left: 0px;
    
}

.search-overlay-content {
    padding: 10px;
    height: auto;
}

/* 修改清除按钮的颜色 */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><path  d="m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z" fill="%23000000"></path></svg>') no-repeat center center;
    background-size: contain;
    cursor: pointer;
}

/* Firefox 浏览器 */
input[type="search"]::-moz-clear-button {
    -moz-appearance: none;
    height: 14px;
    width: 14px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><path  d="m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z" fill="%23000000"></path></svg>') no-repeat center center;
    background-size: contain;
    cursor: pointer;
}

/* Internet Explorer 浏览器 */
input[type="search"]::-ms-clear {
    display: none;
}

.axdp-item {
    display: flex;
    flex-direction: column;
    margin: 10px 0px;
}

.axdp-item a {
    text-decoration: none;
}

.item-up {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-self: start;
    /* align-items: center; */
}

.item-up p {
    margin: 0px 10px;
    font-size: 1rem;
    color: #000;
}

.item-up img {
    width: 20%;
    object-fit: cover;
    border-radius: 20px;
    height: auto;
    /* 自动高度，用于保持图片比例 */
    aspect-ratio: 1 / 1;
    /* 设置宽高比例为10:6 (宽度的60%) */
    object-fit: cover;
    /* 裁剪超出部分，确保图片始终充满容器 */
    object-position: center;
    /* 图片居中 */
}

.item-down {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* margin: 10px 0px; */
}

.item-down p {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

.item-down-star {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    /* max-width: 35%; */
}

.item-down-star-num {
    border-radius: 10px;
    padding: 1px 0px;
    margin-left: 10px;
    width: 80px;
}

.item-down-star p {
    font-size: 0.8rem;
    text-align: center;
    margin: 0px;
    color: #000;
}

.item-down-star img {
    width: 15px;
    height: 15px;
}






