* {margin: 0;padding: 0;box-sizing: border-box;font-family: 'Arial', sans-serif;}
html{margin-top: 0!important;}
body {font-family: Arial, sans-serif;margin: 0;padding: 0;background-color: #1b1b1b;color: #fff;}  
a{text-decoration: none;cursor: pointer;color: rgb(255, 255, 255);}
ul, ol,li {list-style: none;padding: 0; margin: 0; }

:root {
    --main-color: #3498db; 
    --font-size: 16px;
}

.pd-10{ padding: 10px; }
.header-gap{ height: 60px;}

/* 头部导航 (固定在顶部) */
.header {
    position: fixed;
    top: 0;left: 0;
    width: 100%;
    background: #242627;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}
.logo img {
    height: 28px;
    margin-right: 10px;
}

/* 导航菜单 */
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    gap: 5px; 
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.menu > li > a:hover {
    color: var(--main-color);
}

.menu > .menu-item-has-children > a:after {
    content: " >"; /* 添加右箭头 */
    font-size: 12px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.menu li:hover > a:after {
    transform: translateX(5px); /* 鼠标悬浮时箭头移动 */
}

/* 二级菜单样式 */
.menu .sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding: 0;
    margin: 0;
    display: none;
    background-color: #1b1b1b;
    min-width: 180px;
    z-index: 9999;
    box-shadow: 0 14px 30px 0 rgb(36 38 39);
    border-radius: .2rem;
}

.menu > li:hover > .sub-menu {
    display: block; /* 悬浮时显示二级菜单 */
}

.menu .sub-menu li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu .sub-menu li a:hover {
    background-color: var(--main-color);
    color: #fff;
}

/* 在子菜单悬浮时显示其下级菜单 */
.menu .sub-menu .sub-menu {
    left: 100%; /* 显示在父菜单项的右边 */
    top: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu{
        display: none;
    }
}



/*自定义导航-二级菜单*/
.menu-style-2 > ul{
    justify-content: start;
    gap: 0;
    width: 20rem;
    flex-wrap: wrap;
}
.menu-style-2 > ul::after{
    position: absolute;
    top: -7px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #1b1b1b;
    content: '';
    display: block;
    z-index: 2;
    transition: all 200ms linear;
    right: 20px;
}
.menu-style-2 > ul > li{
    flex: 1 0 calc(50% - 2rem) !important;
    padding: .3rem .3rem;
    border-radius: .2rem;
}

.menu-style-2 > ul > li > a:hover {
    background-color: var(--main-color);
    color: #fff;
    border-radius: .2rem;
}

.menu > li:hover > ul {
    display: flex!important;
}



/*首页标签模块==*/
.popular-tags{
    background-color: #242627;
    width: 100%;
    position: relative;
}
.tags-list , .colorline{
    width:100%;display: flex;flex-wrap: wrap;transition: all 0.2s ease;
}
.tags-list::after,.colorline::before{
    content: "";
    width: 100%;
    height: 0.2em;
    background: -webkit-linear-gradient(to right, #00dbde 0, #fc00ff 50%, #00dbde 100%);
    background: linear-gradient(to right, #00dbde 0, #fc00ff 50%, #00dbde 100%);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: 1s;
    background-size: 200% auto;
}

.popular-tags-head{
    display: block;
    padding: 10px 0;
    font-size: 1.4rem;
    color: #2aa6c9;
    width: 100%;
}
.tag-link{
    padding: 10px 10px 10px 0;
    font-size: 1.2rem;
    transition: transform 0.3s ease, font-size 0.3s ease; /* 添加平滑的过渡效果 */
}

.popular-tags-list{
    display: flex;
    flex-wrap: wrap;
}

/* Hover 时的效果 */
.tag-link:hover {
    transform: scale(1.2); /* 放大效果 */
    font-size: 18px; /* 字体增大 */
    color: #ff9f00; /* 你可以设定 hover 时的固定颜色，或者根据需要 */
}

/* 可以为标签项添加一些额外的样式，例如间距、阴影等 */
.tag-link:hover {
    text-decoration: underline; /* Hover 时给链接加下划线 */
}








/* 搜索区域 ==*/
.search-container {
    margin-right: auto;
    margin-left: auto;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* 搜索标题 */
.search-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

/* 搜索标语 */
.search-subtitle {
    font-size: 18px;
    color: #ccc;
    position: relative;
    z-index: 10;
}

/* 搜索框 */
.search-box {
    width: 100%;
    position: relative;
    z-index: 10;
    margin: 1rem auto;
}
.search-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;

    caret-color:var(--main-color);
      
}
.search-input::placeholder {
    color: #ddd;
}
.search-input:focus {
    background: rgba(255, 255, 255, 0.3);
}

/* 搜索按钮 */
.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    transition: color 0.3s ease;
}
.search-btn:hover {
    color: var(--main-color);
}

.search-hots{
    color: rgba(255, 255, 255, .65);
}

.search-hots .hot-1{
    margin-right: .25rem !important;
}

.search-hots a{
    color: rgba(255, 255, 255, .65);
    font-size: .9rem;
}
.search-hots a:hover{
    color: #fff;
}



.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}

.mt-60{
    margin-top: 60px;
}

.cate-list .container{
    margin-top: 0;
}

/*分页样式*/
.pagination{
    width: 100%;
    margin: 20px auto;
    text-align: center;
}
.pagination,.pagination a{
    color: #828288;
}
.pagination a:hover{
    background: #fff;
    color: #d0cccc;
}

.pagination .current-page{
    padding: .4rem .8rem;
}
.pagination .current{
    background: #000000;
    color: #fff;
}
.page-numbers{
    padding: .4rem .8rem;
    display: inline-block;
}
/*分页样式*/


/*壁纸列表样式布局*/
.module-item{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.wallpaper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: #222;
    transition: transform 0.3s ease-in-out;
    opacity: .8;
}
.wallpaper:hover {
    transform: scale(1.05);
    opacity: 1;
}
.wallpaper img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav {
            gap: 15px;
    }
    
    .search-title {
        font-size: 24px;
    }
    .search-subtitle {
        font-size: 16px;
    }
    .search-box {
        width: 80%;
    }
    
    .search-container{
        padding-top: 40px;
        padding-bottom: 40px;
        max-width:100%;
    }
}
@media (max-width: 480px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
        
    }
    .search-title {
        font-size: 22px;
    }
    .search-subtitle {
        font-size: 16px;
    }
    .search-box {
        width: 90%;
    }
    
    .search-container{
        padding-top: 20px;
        padding-bottom: 0px;
        max-width:100%;
    }
}



/*底部 footer*/
    #footer{
        text-align: center;
        margin: 0 auto;
        font-size: .9rem;
        
        background-color: #333;
        padding: 6px;
    }
    #footer a{
        text-decoration: underline;
        color: rgb(178 178 178);
    }
    #footer .footer-info,#footer .footer-source{
        margin: 10px auto;
        color: rgb(178 178 178);
    }




/* 面包屑 */
.crumbs{
    padding: 10px;
}
.crumbs-b{
    border-left: 4px solid var(--main-color);
    padding-left: 6px;
    display: block;
    font-size: 1.4rem;
}
.crumbs-d{
    padding: 10px 0;
    color: #aaaaaa;
}
.crumbs h1{
    display: inline;
    font-size: 1.4rem;
    color: var(--main-color);
}

@media (max-width: 1024px) {
    .crumbs{
        display: none;
    }
}


/* single */
#single-page .crumbs-b , #single-page .crumbs h1{
    font-size: 1.2rem;
}

.article-wallpaper{padding: 10px;}
    
.article-wallpaper article{
    position: relative;
    max-width: 100%;
    padding: 10px;
    margin: 0 auto;
    /*background: #242627;*/
    border-radius: 6px;
}

.article-wallpaper article img{
    box-shadow: 0 5px 5px #202020;
    /*width: 100%!important;*/
    max-width: 800px;
    height: auto!important;
    aspect-ratio: 16 / 9;
    object-fit: cover;

    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    
    border: 6px solid #000000bd;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.download-box{
    text-align: center;
    padding: 20px;
}
.download{
    padding: .4rem .8rem;
    border-radius: 4px;
    background: linear-gradient(135deg, #1d1e22 0, #6d7482 49%, #33a6cc 50%, #24272d 100%);
    cursor: pointer;
    opacity: .8;
}
.download:hover{
    opacity: 1;
}

.others-box{
    max-width: 800px;
    margin: 0 auto;
}

.others-box .Categories,.others-box .Tags{
    background: #4a4747;
    color: #fff;
    padding: .2rem .6rem;
    border-radius: .2rem;
    margin-right: .2rem;
}
.Related-cates{
    padding: 10px 0;
}
.Related-tags{
    padding: 10px 0;
    line-height: 1;
}

.tags-item{
    background-color: #24272d;
    padding: .2rem .4rem;
    border-radius: .2rem;
    margin-right: .6rem;
}
.tags-item a{
    color: var(--main-color);
}


.title-3{
    margin: auto;
    font-size: 17px;
    padding: 12px 0 0 0;
    text-align: center;
}









/* 弹出框样式 */
/* 按钮样式 */
#auth-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}



#auth-button.login-button:hover {
    background-color: var(--main-color);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #393838;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.close:hover {
    color: var(--main-color);
}

/* 表单样式 */
.modal-content form label {
    display: block;
    margin: 10px 0 5px;
    text-align: left;
    font-size: .9rem;
    color: gray;
}

.modal-content form input[type="text"],
.modal-content form input[type="email"],
.modal-content form input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-content form input[type="submit"] {
    width: 100%;
    padding: 8px 10px;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content form input[type="submit"]:hover {
    background-color: var(--main-color);
}

.error-message {
    color: red;
    margin-top: 10px;
}

/* 切换链接样式 */
#switch-to-register,
#switch-to-login {
    color: var(--main-color);
    text-decoration: none;
}

#switch-to-register:hover,
#switch-to-login:hover {
    text-decoration: underline;
}










/*wx登录模块样式*/
    /* 弹窗背景遮罩 */
.wxl-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* 弹窗主体 */
.wxl-login-popup {
  width: 320px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* 弹窗标题区域 */
.wxl-popup-header {
  padding: 16px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
}

.wxl-popup-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* 弹窗内容区域 */
.wxl-popup-content {
  padding: 20px;
  text-align: center;
}

.wxl-qr-code {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  display: block;
}

.wxl-tip-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 关闭按钮（可选，如需手动关闭可添加） */
.wxl-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: url('data:image/svg+xml;utf8,<svg fill="%23999" viewBox="0 0 1024 1024" width="24" height="24"><path d="M512 426.666667L810.666667 128 896 213.333333 597.333333 512 896 810.666667 810.666667 896 512 597.333333 213.333333 896 128 810.666667 426.666667 512 128 213.333333 213.333333 128 512 426.666667z"></path></svg>') no-repeat center;
  background-size: contain;
  border: none;
  outline: none;
}