/* 翻页按钮禁用状态样式 */
.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 壁纸数量显示样式 */
.wallpaper-count {
    font-size: 13px;
    color: #666;
    font-weight: bold;
    margin-left: 10px;
}

.dark-mode .wallpaper-count {
    color: #aaa;
}

/* 锚点位置样式 */
#page-anchor {
    position: absolute;
    top: -100px; /* 确保在视口上方 */
}


       * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }
        
        body {
            background-color: #f0f2f5;
            color: #333;
            line-height: 1.6;
            overflow-x: hidden;
            padding-bottom: 60px;
        }
        
        body.dark-mode {
            background-color: #121212;
            color: #e0e0e0;
        }
        
        /* 顶部导航 - 优化版 */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 50px;
            background: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 15px;
            box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            border-bottom: 2px solid #ff5200;
        }
        
        .dark-mode .header {
            background: #1e1e1e;
            border-bottom: 2px solid #ff7b4d;
        }
        
        .logo {
            color: #ff5200;
            font-weight: bold;
            font-size: 22px;
            cursor: pointer;
            transition: transform 0.3s;
        }
        
        .dark-mode .logo {
            color: #ff7b4d;
        }
        
        .logo:hover {
            transform: scale(1.05);
        }
        
        .search-box {
            position: relative;
            width: 40%;
            max-width: 300px;
        }
        
        .search-box input {
            width: 100%;
            height: 34px;
            border-radius: 17px;
            border: 1px solid #eee;
            background: #f0f2f5;
            padding: 0 40px 0 15px;
            font-size: 14px;
            outline: none;
            transition: all 0.3s;
        }
        
        .dark-mode .search-box input {
            background: #2d2d2d;
            border-color: #444;
            color: #e0e0e0;
        }
        
        .search-box input:focus {
            background: #fff;
            border-color: #ff5200;
        }
        
        .dark-mode .search-box input:focus {
            background: #3a3a3a;
            border-color: #ff7b4d;
        }
        
        .search-box i {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
        }
        
        .dark-mode .search-box i {
            color: #aaa;
        }
        
        /* 用户信息区域 - 仅背景图片 
        .user-profile {
            margin-top: 50px;
            padding: 12px 15px 8px;
            position: relative;
            display: flex;
            flex-direction: column;
            color: #fff;
            overflow: hidden; 
            background: url('/img/bj.png') center/cover;
        }*/
        
        .avatar-container, .user-info, .stats {
            position: relative;
            z-index: 1;
        }
        
        .avatar-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .avatar {
            width: 75px;
            height: 75px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.5);
            overflow: hidden;
            margin: 0 auto 6px;
        }
        
        .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .user-info {
            width: 100%;
            padding: 0 10px;
        }
        
        .username {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 3px;
            text-align: center;
        }
        
        .user-id {
            font-size: 13px;
            opacity: 0.9;
            margin-bottom: 8px;
            text-align: center;
        }
        
        .user-bio {
            font-size: 13px;
            margin-bottom: 8px;
            line-height: 1.3;
            text-align: center;
        }
        
        .stats {
            display: flex;
            justify-content: space-around;
            background: rgba(0, 0, 0, 0.25);
            border-radius: 8px;
            padding: 6px 0;
            margin-top: 6px;
            width: 100%;
            max-width: 100%;
        }
        
        /* 添加竖线分隔符 */
        .stat-item {
            text-align: center;
            flex: 1;
            position: relative;
        }
        
        .stat-item:not(:last-child)::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 18px;
            width: 1px;
            background: rgba(255, 255, 255, 0.3);
        }
        
        .stat-number {
            font-size: 15px;
            font-weight: bold;
            margin-bottom: 2px;
        }
        
        .stat-label {
            font-size: 11px;
            opacity: 0.9;
        }
        
        /* 标签栏 - 分类导航 */
        .tabs {
            display: flex;
            background: #fff;
            position: sticky;
            top: 50px;
            z-index: 100;
            overflow-x: auto;
            padding: 0 5px;
        }
        
        .dark-mode .tabs {
            background: #1e1e1e;
        }
        
        .tabs::-webkit-scrollbar {
            display: none;
        }
        
        .tab {
            padding: 12px 10px;
            font-size: 14px;
            color: #666;
            position: relative;
            white-space: nowrap;
            cursor: pointer;
            text-decoration: none;
            font-weight: bold;
        }
        
        .dark-mode .tab {
            color: #aaa;
        }
        
        .tab.active {
            color: #ff5200;
        }
        
        .dark-mode .tab.active {
            color: #ff7b4d;
        }
        
        .tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background: #ff5200;
            border-radius: 2px;
        }
        
        .dark-mode .tab.active::after {
            background: #ff7b4d;
        }
        
        /* 内容区域 */
        .content {
            padding: 12px;
        }
        
        .section-title {
            font-size: 17px;
            font-weight: bold;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #eee;
            background: #fff;
            position: relative;
            top: 0;
            z-index: 1;
            padding: 8px 12px;
            border-radius: 6px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .dark-mode .section-title {
            background: #2d2d2d;
            border-bottom: 1px solid #444;
        }
        
        .section-title a {
            font-size: 13px;
            font-weight: normal;
            color: #ff5200;
            text-decoration: none;
            font-weight: bold;
        }
        
        .dark-mode .section-title a {
            color: #ff7b4d;
        }
        
        /* 壁纸网格 */
        .wallpaper-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            margin-bottom: 20px;
        }
        
        .wallpaper-item {
            border-radius: 5px;
            overflow: hidden;
            position: relative;
            aspect-ratio: 9/16;
            cursor: pointer;
            transition: transform 0.3s;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }
        
        .dark-mode .wallpaper-item {
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
        }
        
        .wallpaper-item:hover {
            transform: scale(1.03);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .dark-mode .wallpaper-item:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        }
        
        .wallpaper-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        .category-section {
            margin-bottom: 25px;
        }
        
        .category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .category-name {
            font-size: 18px;
            font-weight: bold;
            color: #ff5200;
        }
        
        .dark-mode .category-name {
            color: #ff7b4d;
        }
        
        .view-more {
            font-size: 13px;
            color: #666;
            text-decoration: none;
            font-weight: bold;
        }
        
        .dark-mode .view-more {
            color: #aaa;
        }
        
        .view-more:hover {
            color: #ff5200;
        }
        
        .dark-mode .view-more:hover {
            color: #ff7b4d;
        }
        
        /* 热门分类区域 - 标题调整 */
        .categories {
            background: #fff;
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .dark-mode .categories {
            background: #2d2d2d;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        
        .cat-header {
            text-align: center;
            font-size: 18px;
            font-weight: bold;
            padding: 8px 0 12px;
            color: #ff5200;
            position: relative;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .dark-mode .cat-header {
            color: #ff7b4d;
        }
        
        /* 在标题左右添加菱形方块 */
        .cat-header::before,
        .cat-header::after {
            content: "◆";
            color: #ff5200;
            font-size: 16px;
            margin: 0 10px;
            opacity: 0.8;
        }
        
        .dark-mode .cat-header::before,
        .dark-mode .cat-header::after {
            color: #ff7b4d;
        }
        
        .cat-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        
        .cat-item {
            border-radius: 8px;
            overflow: hidden;
            aspect-ratio: 16/9;
            cursor: pointer;
            transition: transform 0.3s;
            position: relative;
        }
        
        .cat-item:hover {
            transform: scale(1.03);
        }
        
        .cat-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 分类标题样式 - 确保一行显示 */
        .cat-title {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            text-align: center;
            font-size: 16px;
            font-weight: bold;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
            z-index: 2;
            padding: 5px 10px;
            white-space: nowrap;
            width: 100%; 
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        /* 分页控件 */
        .pagination-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 20px 0;
        }
        
        .page-info {
            margin-bottom: 12px;
            font-size: 15px;
            color: #666;
            font-weight: bold;
        }
        
        .dark-mode .page-info {
            color: #aaa;
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .page-btn {
            padding: 6px 12px;
            margin: 0 4px;
            border: none;
            background: #fff;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 13px;
            min-width: 36px;
            text-align: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            text-decoration: none;
            font-weight: bold;
        }
        
        .dark-mode .page-btn {
            background: #2d2d2d;
            color: #e0e0e0;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
        
        .page-btn:hover {
            background: #ff5200;
            color: white;
            transform: translateY(-2px);
        }
        
        .dark-mode .page-btn:hover {
            background: #ff7b4d;
        }
        
        .page-btn.active {
            background: #ff5200;
            color: white;
        }
        
        .dark-mode .page-btn.active {
            background: #ff7b4d;
        }
        
        .page-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }
        
        /* 灯箱样式 - 优化版 */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.88);
            z-index: 2000;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }
        
        .lightbox.active {
            opacity: 1;
            visibility: visible;
        }
        
        .lightbox-content {
            position: relative;
            max-width: 90%;
            max-height: 80%;
            border-radius: 8px;
        }
        
        .lightbox-content img {
            max-width: 100%;
            max-height: 75vh;
            display: block;
            margin: 0 auto;
            border-radius: 5px;
            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
            transition: transform 0.3s;
        }
        
        .lightbox-header {
            position: absolute;
            top: 20px;
            left: 20px;
            color: white;
            font-size: 16px;
            padding: 8px 15px;
            border-radius: 20px;
            z-index: 10;
            background: rgba(0, 0, 0, 0.3);
        }
        
        .lightbox-controls {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            gap: 8px;
            z-index: 10;
        }
        
        .lightbox-btn {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
        }
        
        .lightbox-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: scale(1.1);
        }
        
        .lightbox-btn img {
            width: 20px;
            height: 20px;
            object-fit: contain;
        }
        
        .lightbox-prev, .lightbox-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 46px;
            height: 46px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.3s;
            z-index: 10;
            border: none;
        }
        
        .lightbox-prev img, .lightbox-next img {
            width: 24px;
            height: 24px;
            object-fit: contain;
        }
        
        .lightbox-prev {
            left: 20px;
        }
        
        .lightbox-next {
            right: 20px;
        }
        
        .lightbox-prev:hover, .lightbox-next:hover {
            background: rgba(255, 255, 255, 0.25);
        }
        
        .lightbox-footer {
            position: absolute;
            bottom: -100px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: flex-start;
            gap: 8px;
            padding: 15px;
            overflow-x: auto;
            scrollbar-width: none;
            background: rgba(0, 0, 0, 0.7);
            transition: bottom 0.4s ease;
            white-space: nowrap;
        }
        
        .lightbox-footer.visible {
            bottom: 20px;
        }
        
        .lightbox-footer::-webkit-scrollbar {
            display: none;
        }
        
        .thumbnail-item {
            width: 55px;
            height: 55px;
            border-radius: 5px;
            overflow: hidden;
            opacity: 0.6;
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid transparent;
            flex-shrink: 0;
        }
        
        .thumbnail-item.active {
            opacity: 1;
            border-color: #ff5200;
            transform: scale(1.1);
        }
        
        .thumbnail-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 版权信息底部栏 - 简洁版 */
        .copyright-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 40px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }
        
        .dark-mode .copyright-bar {
            background: rgba(30, 30, 30, 0.9);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .copyright-text {
            font-size: 12px;
            color: #666;
            text-align: center;
        }
        
        .dark-mode .copyright-text {
            color: #aaa;
        }
        
        /* 返回顶部按钮 - 位置调整 */
        .back-to-top {
            position: fixed;
            bottom: 102px;
            right: 20px;
            width: 37px;
            height: 37px;
            background: rgba(255, 255, 255, 0.85);
            color: #ff5200;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
        }
        
        .dark-mode .back-to-top {
            background: rgba(45, 45, 45, 0.85);
            color: #ff7b4d;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
        }
        
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            background: rgba(255, 255, 255, 1);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .dark-mode .back-to-top:hover {
            background: rgba(60, 60, 60, 0.95);
        }
        
        .back-to-top img {
            width: 20px;
            height: 20px;
            object-fit: contain;
        }
        
        /* 白天/黑夜模式切换按钮 - 位置调整 */
        .theme-toggle {
            position: fixed;
            bottom: 50px;
            right: 20px;
            width: 37px;
            height: 37px;
            background: rgba(255, 255, 255, 0.85);
            color: #ff5200;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 999;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
        }
        
        .dark-mode .theme-toggle {
            background: rgba(45, 45, 45, 0.85);
            color: #ff7b4d;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
        }
        
        .theme-toggle:hover {
            background: rgba(255, 255, 255, 1);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .dark-mode .theme-toggle:hover {
            background: rgba(60, 60, 60, 0.95);
        }
        
        .theme-toggle img {
            width: 18px;
            height: 18px;
            object-fit: contain;
        }
        
        /* 响应式设计 */
        @media (min-width: 768px) {
            .wallpaper-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .cat-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .user-profile {
                padding: 15px 10% 10px;
            }
            
            .content {
                padding: 15px 10%;
            }
            
            .avatar {
                width: 80px;
                height: 80px;
            }
            
            .username {
                font-size: 22px;
            }
            
            .cat-title {
                font-size: 18px;
            }
        }
        
        @media (min-width: 992px) {
            .wallpaper-grid {
                grid-template-columns: repeat(5, 1fr);
                gap: 10px;
            }
            
            .cat-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        @media (max-width: 767px) {
            .lightbox-prev, .lightbox-next {
                width: 40px;
                height: 40px;
            }
            
            .lightbox-prev img, .lightbox-next img {
                width: 18px;
                height: 18px;
            }
            
            .lightbox-btn {
                width: 32px;
                height: 32px;
            }
            
            .lightbox-btn img {
                width: 16px;
                height: 16px;
            }
            
            .lightbox-footer {
                padding: 10px;
            }
            
            .thumbnail-item {
                width: 45px;
                height: 45px;
            }
            
            .lightbox-header {
                top: 15px;
                left: 15px;
                font-size: 14px;
            }
            
            .lightbox-controls {
                top: 15px;
                right: 15px;
                gap: 6px;
            }
            
            /* 移动端按钮位置调整 */
            .back-to-top {
                bottom: 82px;
                right: 15px;
                width: 32px;
                height: 32px;
            }
            
            .back-to-top img {
                width: 16px;
                height: 16px;
            }
            
            .theme-toggle {
                bottom: 45px;
                right: 15px;
                width: 32px;
                height: 32px;
            }
            
            .theme-toggle img {
                width: 16px;
                height: 16px;
            }
            
            .cat-title {
                font-size: 15px;
                padding: 4px 8px;
            }
            
            /* 移动端壁纸网格调整为每行3列 */
            .wallpaper-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        /* 标签选择器 */
        .tag-selector {
            display: flex;
            overflow-x: auto;
            gap: 8px;
            padding: 8px 0;
            margin-top: 10px;
            margin-bottom: 12px;
            scrollbar-width: none;
        }
        
        .tag-selector::-webkit-scrollbar {
            display: none;
        }
        
        .tag-btn {
            padding: 6px 12px;
            background-color: #f0f2f5;
            border: 1px solid #e0e0e0;
            border-radius: 20px;
            font-size: 13px;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .dark-mode .tag-btn {
            background-color: #2d2d2d;
            border: 1px solid #444;
            color: #e0e0e0;
        }
        
        .tag-btn:hover {
            background-color: #e0e0e0;
        }
        
        .dark-mode .tag-btn:hover {
            background-color: #3a3a3a;
        }
        
        .tag-btn.active {
            background-color: #ff5200;
            color: white;
            border-color: #ff5200;
        }
        
        .dark-mode .tag-btn.active {
            background-color: #ff7b4d;
            border-color: #ff7b4d;
        }


/* 保留所有原CSS样式，只添加新样式 */
.wallpaper-count {
    font-size: 13px;
    color: #666;
    font-weight: bold;
    margin-left: 10px;
}

.dark-mode .wallpaper-count {
    color: #aaa;
}

.page-dots {
    padding: 6px 12px;
    color: #666;
    font-weight: bold;
}

.dark-mode .page-dots {
    color: #aaa;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    font-size: 16px;
    color: 666;
}

.dark-mode .no-results {
    color: #aaa;
}

/* 保留所有原始CSS样式 */
/* ... 原文件中的所有CSS代码 ... */