body {
    max-width: 820px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    background: url("/img/self_page_bg.png");
    background-repeat: no-repeat; /* 设置背景重复 */
    background-attachment: fixed; /* 背景固定 */
    background-size: cover; /* 使用图片原始大小 */
}

header {
    width: 100%;
    max-width: 820px;
    display: flex;
    color: #000000;
    /*background: white;*/
    height: 6vh;

}

.dfzz-nav-logo img {
    height: 4vh;
}

#search-icon {
    height: 4vh;
}
.dfzz-navbar {
    display: flex;
    /* background: linear-gradient(to right, #100000, #2C2C34); */
    color:#fff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

.dfzz-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    background: url("/img/self_page_bg.png");
    background-repeat: no-repeat; /* 设置背景重复 */
    background-attachment: fixed; /* 背景固定 */
    background-size: cover; /* 使用图片原始大小 */
    position: absolute;
    align-items: start;
    top: 6vh;
    left: 0px;
    padding: 10px 1rem;
    z-index: 10;
    margin: 0;
    height: 100ch;
    list-style-type: none;
    display: none;
}

.dfzz-menu li {
    position: relative;
    width: 100%;
    text-align: center;
    /*border-bottom: 1px solid #cfcfcf; !* 仅底部边框 *!*/
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.dfzz-navbar.open ul {
    display: flex;
    flex-direction: column;
}

.dfzz-menu li a:hover {
    color: #000;
}


.dfzz-navbar.open #nav-open {
    display: none;
}

.dfzz-navbar.open #nav-close {
    display: block;
}

#nav-open {
    display: block;
    position: relative;   
    height: 4vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}

.dfzz-menu li a {
    font-size: 1rem;
    color: #000;
    text-decoration: none;
}


.dfzz-game-item {
    border-radius: 10px;
    position: relative;
    overflow: hidden; /* 关键：裁剪内容到圆角边界 */
}
.dfzz-game-item a {
    position: relative;
    text-decoration: none;
}

.dfzz-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover; /* 确保图片按比例裁剪以完全填充容器 */
    border-radius:10px 10px 10px 10px;
    display: block;
    aspect-ratio: unset; /* 确保高度受父容器控制 */

}

.dfzz-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 /1;
    object-fit: cover;
    border-radius:10px;
    display: block;

}

.dfzz-game-cover p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    background: rgba(251, 249, 249, 0.5); /* 半透明背景 */
    padding: 2px; /* 可调整间距 */
    color: white; /* 字体颜色 */
    font-size: 6px;
    text-overflow: ellipsis; /* 省略号 */
    white-space: nowrap; /* 单行文本 */
    overflow: hidden; /* 隐藏多余内容 */
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}



.dfzz-game-item h3 {
    color: #fff;
    margin: 5px 0px;
    font-size: 0.75rem;

}

.dfzz-game-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    background: rgba(16, 16, 16, 0.5); /* 半透明背景 */
    padding: 2px; /* 可调整间距 */
    color: white; /* 字体颜色 */
    font-size: 0.9rem;
    padding: 4px;
    text-overflow: ellipsis; /* 省略号 */
    white-space: nowrap; /* 单行文本 */
    overflow: hidden; /* 隐藏多余内容 */
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.dfzz-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.dfzz-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.8rem;
}

.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; */
}

.dfzz-recomed-div {
    padding: 10px 0px;
    margin-left: 10px;
    margin-right: 10px;
    /*border-bottom: #e4e7ed 1px dotted;*/

}

.dfzz-common-recommend-title {
    display: flex;
    align-items: start;
    /* box-shadow: #b6e05d 5px 5px 5px; */
    border-radius: 10px;
}

.dfzz-common-recommend-title p {
    color: #000;
    font-size: 16px;
    font-weight: bold;
    padding: 5px 0px;
    margin: 0px;
    text-align: start;
}

.dfzz-common-recommend-title p::before {
    content: ""; /* 生成伪元素 */
    display: inline-block; /* 确保竖线显示在同一行 */
    width: 3px; /* 竖线宽度 */
    height: 0.8rem; /* 竖线高度 */
    border-radius: 4px;
    background-color: #ff873b; /* 竖线颜色 */
    margin-right: 8px; /* 与文字的间距 */
    vertical-align: middle; /* 对齐文字 */
}

/*.dfzz-common-recommend-title p::before {*/
/*    content: ""; !* 保留伪元素 *!*/
/*    display: inline-block; !* 确保图标与文字在同一行 *!*/
/*    width: 15px; !* 图标的宽度 *!*/
/*    height: 15px; !* 图标的高度 *!*/
/*    margin-right: 5px;*/
/*    background-image: url('/img/self_star.png'); !* 替换为图标路径 *!*/
/*    background-size: contain; !* 确保图标适应容器大小 *!*/
/*    background-repeat: no-repeat; !* 防止图标重复 *!*/
/*    vertical-align: middle; !* 对齐文字 *!*/
/*}*/

.dfzz-common-recommend-title h::after {
    content: ""; /* 保留伪元素 */
    display: inline-block; /* 确保图标与文字在同一行 */
    width: 15px; /* 图标的宽度 */
    height: 15px; /* 图标的高度 */
    margin-left: 10px;
    background-image: url('/img/self_more.png'); /* 替换为图标路径 */
    background-size: contain; /* 确保图标适应容器大小 */
    background-repeat: no-repeat; /* 防止图标重复 */
    vertical-align: middle; /* 对齐文字 */
}




.dfzz-common-recommend-title img {
    width: 20px;
    height: 20px;
}

.dfzz-game-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0px;
    border-bottom: #efefef dotted 1px;
}

.dfzz-game-title p {
    font-size: 1rem;
    color: #fff;
    
}

.dfzz-game-title img {
    width: 30px;
    height: 30px;
    display: block;
}

.dfzz-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 15px;
    /* Gap between items */
    margin-top: 10px ;
}

.dfzz-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.game-big-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.game-big-3 {
    grid-column: span 3;
    grid-row: span 3;
}



/*footer {*/
/*    position: fixed;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    padding: 5px;*/
/*    background: #fff;*/
/*    text-align: center;*/
/*    z-index: 10;*/
/*    box-shadow: 0 -2px 2px rgba(58, 58, 58, 0.2); !* 添加顶部阴影 *!*/
/*}*/

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
    /*background: #f78600;*/
}


.dfzz-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.dfzz-footer-links a {
    font-size: 0.6em;
    color: #000;
    text-decoration: none;
}

.dfzz-footer-links a:hover {
    text-decoration: underline;
}

footer .dfzz-copyright {
    font-size: 0.8em;
    color: #000;
    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-color: #fff;
    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-color: #A0A0A0(255, 255, 255, 1.0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}



.dfzz-game-info-div {
    margin: 10px 20px 0px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    border: #e4e7ed  1px solid;
}

.game-detail-iframe {
    width: 100%;
}

.dfzz-game-detail-title-cover {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
}

.dfzz-game-detail-title-cover img {
    width: 100%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    /*aspect-ratio: 1 / 0.8;*/
    display: block;
}

.dfzz-detail-info {
    /* z-index: 15; */
    /* position: absolute; */
    width: 100%;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 0px 0px 10px 0px;
    border-bottom: #e4e7ed 1px solid;
}

.dfzz-detail-info h2 {
    color: #000;
    font-size: 1rem;
    margin: 10px;

}

.dfzz-detail-info p {
    color: #000;
    font-size: 1rem;
    margin: 10px 5px;

}

.dfzz-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0px;
    padding: 20px;
    border-radius: 10px;
    background: url("/img/self_page_bg.png");
    /*border: #41d1ea 1px dashed;*/
    /*solid: 实线（最常用）*/
    /*dashed: 虚线*/
    /*dotted: 点状线*/
}


.dfzz-game-instructions p {
    color: #000;
    margin: 0px;
}



.dfzz-game-gameplay-button {
    display: flex;
     height: 10vh;
    /* background: linear-gradient(to bottom, #DBD213, #FFC145); */
    /* border-radius: 10px; */
    justify-content: center;
    align-items: center;
    margin-top: -40px;
    bottom: 20px;
}

.dfzz-game-gameplay-button  img {
    width: 135px;

}

.dfzz-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: 40px;
    height: 40px;
}
.dfzz-news-detail{
    color: #000;
    background: white;
    text-align: start;
    padding: 1rem;
}
.dfzz-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{
    padding: 2rem 1rem;
}

.dfzz-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: 20px;
    right: 0px;
}

.dfzz-game-mark img{
    width: 80px;
    height: 80px;
   
}

.autocar-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;
}

.autocar-game-new img{
    width: 50px;
    height: 50px;
   
}

.dfzz-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#autocar-game-body {
    margin-top: 8vh;
}

.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;
}



.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/self_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 10px 0px 10px ;
    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: 100%;
    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;
}

.dfzz-item {
    display: flex;
    flex-direction: column;
    margin: 10px 0px;
}

.dfzz-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;
}

/* styles.css */
/* input[type="search"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 300px;
} */

.dfzz-detail-info-star {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}
.dfzz-detail-info-star img {
    width: 20px;    
    height: 20px;
}
.dfzz-detail-info-star p {
    font-size: 0.8rem;
    margin: 0px 10px;
}


.news-tab {
    margin: 10px 0px;
    padding: 15px;
    border-radius: 5px;
}

.news-tab .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}


/*.news-tab .title:before {*/
/*    position: absolute;*/
/*    left: 0;*/
/*    top: 20%;*/
/*    width: 3px;*/
/*    height: 60%;*/
/*    content: "";*/
/*    background-color: #FFAA00;*/
/*    background-image: linear-gradient(180deg, rgba(255, 255, 255, .15), transparent);*/
/*    border-radius: 3px;*/
/*    z-index: 2;*/
/*}*/


.news-tab .title p {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
    flex-grow: 1;
    /*margin-left: 10px;*/
    text-align: left;
}

.news-tab .title a img {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.news-tab .title a {
    text-decoration: none;
}

.news-tab .title a p {
    font-size: 0.9rem;
    cursor: pointer;
    color: #383939;
}

.news-tab .content {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.news-tab .content a {
    color: #000;
    font-size: 0.8rem;
    line-height: 1.5rem;
    padding: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    /* border-bottom: 1px solid #F1F1F1; */
}

.news-tab .content a:last-child {
    border-bottom: none;
}

.hot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.hot-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 50%;
    box-sizing: border-box;
}

.hot-tab p:first-child {
    position: absolute;
    top: 0px;
    left: 0px;
    margin: 0;
    font-size: 10px;
    color: #fff;
    padding-block: 2px;
    padding-inline: 5px;
    background-color: #4CB571;
    border-radius: 10px 0px 10px 0px;
}

.hot-tab img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.hot-tab p:last-child {
    width: 95%;
    text-align: left;
    position: absolute;
    bottom: 0px;
    margin: 0;
    font-size: 0.8rem;
    padding: 2px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}











