* {
    margin: 0;padding: 0;box-sizing: border-box;font-family: 'Arial', sans-serif;font-size:16px
}
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;
}


/*分类样式*/
.style_9x16 img{ aspect-ratio: 9 / 16!important; }
.style_21x9 img{ aspect-ratio: 21 / 9!important; }
.style_1x2 img{ aspect-ratio: 1 / 2!important; }
.style_16x9 img{ aspect-ratio: 16 / 9!important; }
.style_2x1 img{ aspect-ratio: 2 / 1!important; }
.style_3x4 img{ aspect-ratio: 3 / 4!important; }

.post_9x16 {aspect-ratio: 9 / 16!important;max-width:350px!important}
.post_21x9 { aspect-ratio: 21 / 9!important; max-width:1000px!important}
.post_1x2 { aspect-ratio: 1 / 2!important; max-width:350px!important}
.post_16x9 { aspect-ratio: 16 / 9!important; max-width:800px!important}
.post_2x1 { aspect-ratio: 2 / 1!important; max-width:1000px!important}
.post_3x4 { aspect-ratio: 3 / 4!important; max-width:400px!important}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}
.mt-60{margin-top: 60px!important;}
.cate-list .container{
    margin-top: 0;
}
/* ==============================================
   头部样式 「固定在顶部」
   ============================================== */
.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: 0 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    height: 60px;
}
.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: 4px 6px;
    text-decoration: none;
    color: #9d9d9d;
    font-weight: 500;
    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;
}


/*自定义导航-二级菜单*/
.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;
}

/*预览模式*/
#toggle3 {background: rgba(50, 50, 70, 0.4);color: #f0f0f0;border: none;padding: 6px 15px;border-radius: 20px;cursor: pointer;display: flex;align-items: center;gap: 8px;transition: all 0.3s ease;}
#toggle3 .toggle-switch {position: relative;width: 40px;height: 20px;border-radius: 10px;background: rgba(100, 100, 120, 0.5);transition: all 0.3s ease;}
#toggle3 .toggle-slider {position: absolute;top: 2px;left: 2px;width: 16px;height: 16px;border-radius: 50%;background: #f0f0f0;transition: all 0.3s ease;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);}

/* 激活状态样式 */
#toggle3.active {background: rgba(70, 70, 90, 0.5);}
#toggle3.active .toggle-switch {background: rgb(49 255 0 / 60%);}
#toggle3.active .toggle-slider {transform: translateX(20px);}

/* 悬停效果 */
#toggle3:hover {background: rgba(70, 70, 90, 0.5);}


/* ==============================================
   首页-标签模块
   ============================================== */
.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; 
}

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



/* ==============================================
   搜索区域样式
   ============================================== */
.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: 16px;
    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: 1rem;
}
.search-hots a:hover{
    color: #fff;
}





/*分页样式*/
.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;
    
}


/*底部 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: 14px;
}
.crumbs-d{
    padding: 10px 0 0 0;
    color: #aaaaaa;
}
.crumbs h1{
    display: inline;
    font-size: 1.4rem;
    color: var(--main-color);
}



/* single */
#single-page .crumbs-b , #single-page .crumbs h1{
    font-size: 14px;
    line-height:1.4;
}

.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: 10px 0;
}
.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: 4px 8px;
    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: 4px 8px;
    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;
}

.related-box .container{
    padding: 10px 0!important;
}







/* 弹出框样式 */
#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;
}






/*文章页1 - 主壁纸区域 */
.wallpaper-container {
    position: relative;
    width: 100%;
    height: 100vh!important;
    overflow: hidden;
}
/*.wallpaper-container img.wallpaper-content{*/
/*    width: 100%;*/
/*    height: 100vh!important;*/
/*    object-fit: cover!important;*/
/*    object-position: center;*/
/*}*/


/* 导航按钮 */
.nav-arrows {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    z-index: 20;
    opacity: 1; /* 默认可见 */
    transition: opacity 0.3s ease-in-out; 
}

.nav-arrows.hidden {
    opacity: 0;
    display: none;
}

.arrow-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(3px);
}
.arrow-btn i{
    font-size: 24px;
}

.arrow-btn.next {
    background: linear-gradient(-90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
}

.arrow-btn:hover {
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    transform: scale(1.05);
}

.arrow-btn.next:hover {
    background: linear-gradient(-90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}


/* 显示状态类 */
.nav-arrows.show {
    opacity: 1;
    visibility: visible;
}

.nav-link {
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nav-link i {
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

/* 底部信息栏 */
.info-bar {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 15px;
    box-sizing: border-box;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, .25);
    
    opacity: 0;
    display: none; 
    transition: opacity 0.3s ease-in-out; 
    
    /*position: absolute;*/
    /*bottom: 0;*/
    /*left: 0;*/
    /*right: 0;*/
    /*background: linear-gradient(transparent, rgba(0, 0, 0, 0.6) 100%);*/
    /*padding: 15px;*/
    /*backdrop-filter: blur(8px);*/
    /*z-index: 20;*/
}

.info-bar.fade-in {
    opacity: 1; /* 淡入状态 */
}

.title {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.meta-info {
    font-size: 14px;
    color: #eee;
    margin-bottom: 10px;
    position: relative;
}

.description {
    /*max-width: 800px;*/
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #eee;
}

/* 参数和操作区 */
.bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.parameters {
    display: flex;
    gap: 20px;
    /*font-size: 16px;*/
    color: #ddd;
}

.param-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(3px);
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.2) 100%);
    transform: translateY(-2px);
}

/* 统计信息 */
/*.stats {*/
/*    display: flex;*/
/*    gap: 20px;*/
/*    margin-top: 15px;*/
/*    font-size: 13px;*/
/*    color: #ddd;*/
/*}*/

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-item i{
    font-size: 22px!important;
}


.color-swatch:hover {
    transform: scale(1.3) rotate(15deg);
}


@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.action-buttons{
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 30;
    
}

.action-btn{
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
}

.action-btn::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    right: 50%;
    transform: translateX(50%) translateY(8px);
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.action-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}
.action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}




.thumbnail, .original {
    width: 100%;
    height: 100%;
    object-fit: cover!important;
    position: absolute;
    top: 0;
    left: 0;
    object-position: 50% 50%;
    
    opacity: 0;
    transition: opacity 300ms ease-out;
    
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 初始状态：只显示缩略图 */
.thumbnail {
    z-index: 2;
}

.original {
    z-index: 3;
}

/* 原图加载完成后显示 */
.ready {
    opacity: 1;
}

/* 有缓存时隐藏缩略图 */
.has-cache .thumbnail {
    /*display: none;*/
}



/* 文章页1-自定义右键菜单样式 - 更高透明度带淡蓝色调 */
#customContextMenu {
  position: fixed;
  width: 150px;

  background: rgba(240, 248, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(100, 149, 237, 0.15);
   /*淡蓝色边框 */
  border: 1px solid rgba(173, 216, 230, 0.3);
  display: none;
  z-index: 10000;
  overflow: hidden;
  
opacity: 0;
display: none;
transition: opacity 0.2s ease-in-out;
}

#customContextMenu.show {
    opacity: 1;
    display: block;
}

#customContextMenu ul {
  list-style: none;
}

#customContextMenu li {
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3a5a7a;
}

#customContextMenu li:hover {
   /*悬停时略微降低透明度，增强蓝色调 */
  background: rgba(240, 248, 255, 0.8);
  color: #2a4365;
}

#customContextMenu li i {
  width: 16px;
  text-align: center;
  font-style: normal;
}

 /*分隔线 - 带淡蓝色调 */
#customContextMenu .divider {
  height: 1px;
  background: rgba(173, 216, 230, 0.2);
  margin: 5px 0;
}

 /*操作提示 */
#actionToast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(42, 67, 101, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  display: none;
}

#actionToast.show {
      opacity: 1;
    display: block;
}









/* 相关壁纸展示容器 */
.related-wallpaper {
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #939393e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    display: none; /* 默认完全隐藏 */
    transition: opacity 0.3s ease-in-out; /* 仅过渡透明度 */
    
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px #0006;
    border: 1px solid hsla(0, 0%, 100%, .06);
    background: linear-gradient(180deg, #ffffff05, #ffffff03);
}
.related-wallpaper.fade-in{
    opacity: 1
}

/* 标签页导航 */
.tabs-nav {
    display: flex;
    background-color: #939393e0;
    border-bottom: 1px solid #333;
    
    background: linear-gradient(90deg, rgba(167, 111, 215, 0.14), rgba(124, 215, 238, 0.08));
    border-bottom: 1px solid hsla(0, 0%, 100%, .04);
}

.tab-button {
    padding: 16px 24px;
    text-align: center;
    color: #ccc;
    font-family: Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    position: relative;
}

.tab-button:hover {
    color: #fff;
}

.tab-button.active {
    color: #fff;
    font-weight: bold;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0078d7;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #fff;
}

/* 图片网格容器 */
.tab-content {
    padding: 20px;
    display: none;
}

.tab-content.active {
    display: block;
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 壁纸项样式 - 宽高比设置 */
.wallpaper-item {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;

}


.wallpaper-img {
    width: 100%;
    object-fit: cover;
    display: block;

    aspect-ratio: 16/9; 
}

/* 壁纸信息 */
.wallpaper-info {
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.wallpaper-item:hover .wallpaper-info {
    transform: translateY(0);
}

.wallpaper-caption{
    display: none;
}








/* ==============================================
   基础样式（默认适配大屏设备，桌面优先）
   ============================================== */


/* 工具类：默认适配大屏，小屏按需隐藏 */
.hidden-lg { display: none !important; } 
/*.hidden-md { display: none !important; } */
/*.hidden-sm { display: none !important; }*/



/* ==============================================
   断点适配（从大屏向小屏兼容）
   ============================================== */

/* 中屏桌面：992px~1199px（比大屏稍小） */
@media (max-width: 1200px) {
  html {
    font-size: 16px;
  }
  /* 中屏显示/隐藏控制 */
  .hidden-md { display: none !important; }
}

/* 平板横屏/小屏笔记本：768px~991px */
@media (max-width: 1024px) {
    html {
        font-size: 16px;
    }
    
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
    /* 平板横屏显示/隐藏控制 */
    .hidden-sm { display: none !important; }
    .wallpaper-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板竖屏：600px~767px */
@media (max-width: 768px) {
    *{ font-size: 14px;}
    
    .menu{ display: none;}
    
    .container { grid-template-columns: repeat(3, 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%;
    }
    .wallpaper-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 12px 16px;
    }
    .detail .action-btn{
        position: absolute;
        right: 0;
        top: 0;
        width: 25px;
        height: 25px;
        padding: 0;
        display: flex!important;
   }
   .stats{
       display: none;
   }
}

/* 大屏手机/折叠屏：480px~599px */
@media (max-width: 600px) {
    * {
        font-size: 14px;
    }
    h1{
       font-size: 1.2rem!important;
    }
    
    .module-item{gap: 10px;}
    .wallpaper{border-radius: 6px;}
    .wallpaper img{border-radius: 6px;}
    
    .detail .action-btn{
        position: absolute;
        right: 0;
        top: 0;
        width: 25px;
        height: 25px;
        padding: 0;
        display: flex!important;
    }
    .info-bar{
        padding: 0;
    }
    

}

/* 小屏手机：≤479px（最小屏设备） */
@media (max-width: 480px) {
    *{
        font-size: 14px;
    }
    .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%;
    }

   /* 小屏显示/隐藏控制 */

}