/* ========== 导航栏样式 ========== */
.z-menu {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3%;
    height: 60px;
    background: var(--bg2);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.item-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.item-list .item {
    color: var(--fam);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.item-list .item:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.z-menu-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 登录注册按钮 */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    color: var(--fam);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 用户菜单 */
.user-menu {
    position: relative;
}

.user-avatar-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
}

.user-avatar-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.user-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 用户下拉菜单 */
.user-dropdown-modern {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: var(--bg2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-dropdown-modern.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-profile-card {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 16px;
    align-items: center;
}

.user-avatar-large {
    position: relative;
}

.user-avatar-large img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bg2);
}

.user-profile-info {
    flex: 1;
    min-width: 0;
}

.user-name-large {
    font-size: 18px;
    font-weight: 700;
    color: var(--fam);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu-list {
    padding: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--fam);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.menu-item:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.menu-item.logout {
    color: #ef4444;
}

.menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.15);
}

.menu-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.menu-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    flex-shrink: 0;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* 搜索和主题按钮 */
.btn-search-con, .btn-moon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.btn-search-con:hover, .btn-moon:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.05);
}

/* ========== 原有样式 ========== */
.item-img{

    /* background: url(../images/a/A1.jpg)   center; */
    /* api图片接口 */

    /* background: url( https://www.dmoe.cc/random.php)   center; */

    background-size: cover;


    height: 26rem;
}
.item-img{
    position: relative;
    width: 100%;
    display: flex;
    z-index: 1;
    margin-top: -60px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: var(--op1);
    transition: 0.5s ease-in-out;
    padding-bottom: 0px;
}
.item-img::after{
    content: '';
    width: 100%;
    height: 3rem;
    position: absolute;
    bottom: -1px;
    left: 0;
    background: linear-gradient(180deg, transparent,var(--bg2));
    transition:  0.5s ;
}
.item-lunbo {
    opacity: 0.9;
    width: 100%;
    height: 360px;
    position: relative;
    display: flex;
    margin-bottom: 20px;
    border-radius: 6px;
}
 .item{
     width: 100%;
     height: 100%;
     float: left;
     position: absolute;
     z-index: -3;
 }
 .carousel-img img{
     width: 100%;
     height: 100%;
     object-fit: cover;
     position: absolute;
     transition: 0.4s;
     border-radius: 6px;
 }
 .top{
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
 }
 .prev{
     width: 40px;
     height: 50px;
     margin: 0;

     text-align: center;
 }
 .next{
     width: 40px;
     height: 50px;
     margin: 0;
     text-align: center;
     float: left;
 }
 .indicator {
position: absolute;
z-index: 3;
display: flex;
right: 0;
}

.dot {
width: 10px; /* 圆球的宽度 */
height: 10px; /* 圆球的高度 */
background-color: #fff; /* 圆球的背景颜色 */
border-radius: 50%; /* 使元素成为圆形 */
margin: 0 2px; /* 圆球之间的间距 */
cursor: pointer; /* 当鼠标悬停时的样式 */
}

.dot.active {
background-color: #000; /* 激活状态为黑色 */
}
.top .prev{
position: relative;
left: -40px;
opacity: 0;
transition: .35s ease-out;
}
.top .next{
position: relative;
right: -40px;
opacity: 0;
transition: .35s ease-out;
}
.prev:hover{
background-color:rgba(243, 243, 243, 0.5);

}
.prev:active{
background-color:rgba(243, 243, 243, 0.7);
color: #e9e9e9;
}
.next:hover{
background-color:rgba(243, 243, 243, 0.5);

}
.next:active{
background-color:rgba(243, 243, 243, 0.7);
color: #e9e9e9;
}
.item-lunbo :hover .prev{
left: 0px;
opacity: 1;
}
.item-lunbo :hover .next{
right: 0px;
opacity: 1;
}
.item-lunbo:hover .item{
opacity: 0.9;

}
.item-con{
    width: 80%;
    height: 110%;
    display: flex
;
    justify-content: center;
    padding-top: 2rem;
    margin: 0 auto;
    align-items: flex-start;
    align-content: space-around;
    flex-wrap: nowrap;
}
.con-left{
    width: 75%;
    max-width: 1400px;

}
.con-right{
    width: 25%;
    max-width: 270px;
  margin-left: 20px;
}
.con-li{
    width: 100%;
    position: relative;
    display: flex;
    margin-bottom: 20px;
    border-radius: 6px;
    flex-wrap: wrap;
    align-content: flex-start;
}

.con-li>li{
    box-shadow: var(--box-shadow);
    margin: 0;
    width: 100%;
    height: 220px;
    position: relative;
    display: flex;
    background-color:var(--bg2)  ; 
    transition: .35s;
    margin-bottom: 20px;
    border-radius: 6px;
}

.con-li li:nth-child(2n){
    flex-direction: row-reverse;
}

.con-li li:nth-child(2n) a img{
    border-radius: 0 6px 6px 0;
    -webkit-clip-path: polygon(2% 0, 100% 0, 100% 100%, 10% 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
}

.con-li li:hover{
    transform: translateY(-5px); 
    opacity: 0.9;
}
.li-left{
    margin: 0;
    width: 35%;
}
.li-right{
    width: 60%;
}
.li-left img{
     width: 100%;
     object-fit: cover;
     height: 100%;
     clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
     border-radius: 6px;
}
.li-title{
    display: flex;
    overflow: hidden;
    margin-bottom: 20px;
    max-height: 60px;
    color: var(--fam1);
    text-overflow: ellipsis;
    font-size: 20px;
    line-height: 30px;
    transition: color .35s;
   padding: 20px;
   text-indent: 1em;

}

.li-p{
    display: flex;
    overflow: hidden;
    max-height: 44px;
    color: var(--fam1);
    text-overflow: ellipsis;
    line-height: 22px;
    opacity: .85;

    text-indent: 2em;
}
.con-right-1{
    position: relative;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}
.con-right-1 section{
    background: var(--bg2);
    position: sticky;
    margin-bottom: 0;
    transition: top 0.35s;
}
.rg1{
        display: flex;
        align-items: center;
        border-bottom: 1px solid #555;
        font-size: 15px;
        font-weight: 500;
        height: 45px;
        line-height: 45px;
        padding: 0 15px;
        color: var(--fam1);
        transition: 0.5s;
}
.rg1 svg{
    margin: 0;
    margin-right: 5px;
    width: 17px;
    height: 17px;
}
.rg1 span{
    margin: 0;
    display: inline-block;
}
.abc{
    content: " ";
    position: absolute;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background: #fc625d !important;
    width: 11px;
    height: 11px;
    -webkit-box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
    box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
    float: right;
    right: 55px;
    top: 17px;
}
.rg2{
    padding: 10px 20px;
}
.rg2 p{
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 30px;
    margin-bottom: 10px;
}
.rg2 p a{
    margin: 0;
    position: relative;
    color: var(--fam1);
    max-width: 85%;

    -webkit-text-overflow: ellipsis;
    overflow: hidden; /* 隐藏溢出的文本 */    
    text-overflow: ellipsis; 
    font-size: 14px;
    display: block;
    white-space: nowrap; /* 禁止文本换行 */



    background: linear-gradient( to right  , #73aaff,#73aaff) no-repeat right bottom;
    background-size:0px 3px;
           
    transition: background-size 0.75s  ease-in-out;
    border-radius: 6px 6px 0 0;
    
}

.rg2>p>a:hover{
    background-position: left bottom;
    opacity: 1;
    color: var(--color1);
    border-radius: 6px 6px 0 0;
    transition:background-size  0.5s  ease-in-out;
    background-size:100% 3px;
    position: relative;


}
.rg2>p>svg{
    display: flex;
    margin: 0;
}
.rg2 .sj{
    margin-bottom: 15px;
}
.sj-title{
    font-size: 13px;
    color: var(--fam1);
    margin-bottom: 5px;
 
    text-indent: 0.1em;

}
.sj-ps{
    display: flex;
    align-items: center;
}
.ps-bar{
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--color3);
    width: 0;
    min-width: 0;
    flex: 1;
    margin-right: 5px;
}
.ps-p{
    font-size: 12px;
    color: var(--fam1);
}
.ps-bar .bar-l{

    background: #bde6ff;
    background-image: linear-gradient(135deg, #50bfff 25%, transparent 25%, transparent 50%, #50bfff 50%, #50bfff 75%, transparent 75%, transparent 100%);
    background-size: 30px 30px;
    margin: 0;
    height: 100%;
    border-radius: 5px;
  
    transition: 0.35s ease-in-out;
    -webkit-animation: progress 750ms linear infinite;
    animation: progress 750ms linear infinite;
}
.text{
    color: var(--color1);
    font-weight: 500;
    font-size: 14px;
    margin: 0 5px;
}
.suiji{
    border-bottom-left-radius: 225px 15px;
    border-bottom-right-radius: 15px 255px;
    border-top-left-radius: 15px 225px;
    border-top-right-radius: 255px 15px;
}
.rg2-s{
    border-style: solid;
    border-color: var(--color5);
    padding: 15px;
    line-height: 1.8;
    background: var(--color4);
    color: var(--fam1);
    margin-bottom: 15px;
}
.left-js{
    background: var(--bg2);
    border-radius: 6px;
    padding: 15px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}
.js-p{
    padding-top: 15px;
    font-size: 15px;
    word-break: break-word;
    color: var(--fam1);
    display: flex;
    margin: 0;
    flex-wrap: wrap;
}
.p-h{
    display: flex;
    justify-content: flex-start;
    margin: 0;
    align-items: flex-end;
}
.p-h h2{
    display: flex;
    justify-content: center;
    align-items: center;

}

.p-h img{
   width: 50px;
   display: flex;
}
.js-p p{

    text-align: left;
    display: flex;
    justify-content: flex-start;
    margin:  0 0 18px 0;
    align-items: flex-end;
    width: 100%;
}
.js-p span{
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 24px;
    padding-bottom: 0.2em;
}
.js-bar{
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--color3);
    width: 90%;
    min-width: 0;
   margin: 0 5px 0 0 ;


}
.js-bt{
    width: 100%;
    display: flex;
    align-items: center;
}
.js-l{
    background: #bde6ff;
    background: linear-gradient(135deg, rgb(255, 73, 73) 25%, transparent 25%, transparent 50%, rgb(255, 73, 73) 50%, rgb(255, 73, 73) 75%, transparent 75%, transparent 100%) 0% 0% / 30px 30px rgb(255, 169, 169); 
    background-size: 30px 30px;
    margin: 0;
    height: 100%;
    border-radius: 5px;
   width: 80%;
    transition: 0.35s ease-in-out;
    -webkit-animation: progress 750ms linear infinite;
    animation: progress 750ms linear infinite;
    
}
.js-lp{
    background: #ffd980;
    background: linear-gradient(135deg, #f7ba2a 25%, transparent 25%, transparent 50%, #f7ba2a 50%, #f7ba2a 75%, transparent 75%, transparent 100%);
    background-size: 30px 30px;
    margin: 0;
    height: 100%;
    border-radius: 5px;
   width: 40%;
    transition: 0.35s ease-in-out;
    -webkit-animation: progress 750ms linear infinite;
    animation: progress 750ms linear infinite;
    
}
.con-left{
    max-width: 1400px;
}
.d-left{
    background: var(--bg2);
    border-radius:6px;
    padding: 15px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}
.d-nav{

    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #555;
    color: var(--fam1);
}

.d-nav ul{
    display: flex;
    margin: 0;
    align-items: flex-end;
}
.d-nav ul li{
    margin: 0;
    display: flex;
    align-items: center;
 

}
.d-nav  ul li a{
    text-decoration: none;
    color: var(--fam1);

}
.m{
    padding: 0 8px;
}
.d-p>div>p{
    color: var(--color6);
    line-height: 36px;
    font-size: 14px;

}
pre{
    white-space: pre-line;
    width: 100%;
    text-align: left;
    position: relative;
    margin: 0 !important;

    font-size: 14px;
    border-radius: 5px 5px 5px 5px;
    overflow: hidden;
    letter-spacing: 0.05em;
    background: #2d2d2d;
    overflow-x: auto; /* 允许横向滚动 */

}
code{

    background: #2d2d2d !important;
   height: 100%;
   overflow-x: visible !important;
   position: relative;
}
pre::before{
    content: '';
    position: absolute;
    display: block;
    margin: 1em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fc625d;
    box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
    z-index: 1;

}
code span{
    white-space: nowrap;
}
#text{
    width: 100%;
}

.d-p{
    color: var(--color6);
    line-height: 36px;
    font-size: 14px;
}
.li-p{
    display: block; /* 或者 inline-block, 确保宽度生效 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;

    
}
.li-title:hover{
    color: #73aaff;
}
.d-h{
    font-size: 18px;
    color: var(--fam1);
}
::-webkit-scrollbar {
    position: absolute;
    width: 12px;  /* 滚动条的宽度 */
    height: 12px; /* 滚动条的高度 */
    bottom: 0;
}



::-webkit-scrollbar-thumb {
    background: #888; /* 滚动条滑块背景 */
    border-radius: 6px; /* 滑块的圆角 */
}

::-webkit-scrollbar-thumb:hover {
    background: #555; /* 滑块悬浮时的背景 */
}
#dog{
   border-color: var(--bg2);
    border-radius: 6px;
    background-color: var(--bg2);
    box-shadow: var(--box-shadow);
    margin: auto;
    padding: 30px 40px 30px;
    width: 350px;
    text-align: center;
}
#dog::backdrop{
    backdrop-filter: blur(1px);
}
.bn{
    height: 35px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    background-color: #73aaff;
    cursor: pointer;
    border-radius: 2px;
    color: #fff;
    width: 100%;

}
.bn:hover{
    transition-duration: .4s;
    background-color: #5f97ef;
}
.close{
    position: absolute;
    right: 10px;
    top: -3px;
}
.form-dog h2{
    margin: 0 0 1em;
}

.form-dog input{
    padding: 7px;
    border-radius: 2px;
    box-sizing: border-box;
    width: 100%;
}
.form-dog input:focus{
    box-shadow: 0 0 0 .1rem #73aaff;
}
.form-dog p{
    margin-block-end: 1em;
}
.tj{
    width: 100%;
    position: relative;
    margin-bottom: 15px;
    padding: 60px 15px 15px;
    border-radius: 6px;
    background: var(--bg2);
    box-shadow: var(--box-shadow);
}
.fl-p::before{
    position: absolute;
    bottom: -10px;
    left: -10px;
    border: 10px solid transparent;
    border-top: 10px solid #73aaff;
    content: "";
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}
.fl{
    width: 100%;
    border-bottom: 1px solid #555;
    margin-bottom: 15px;
    display: flex;
}
.fl-p{
    position: absolute;
    top: 15px;
    left: -10px;
    padding: 0 12px;
    height: 30px;
    border-radius: 2px 2px 2px 0;
    background: #73aaff;
    box-shadow: 2px 5px 10px rgba(49, 58, 70, .15);
    color: #fff;
    font-weight: 500;
    line-height: 30px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.fl-img{
    width: 100%;
    display: flex;
    justify-content: space-between
}
.fl-img img{
    width: 20%;

    border-radius: 6px;
    box-shadow: var(--box-shadow);
}