/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: normal;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* 分页样式 - 完全重做 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination li {
    margin: 0 0.25rem;
    list-style: none;
}

.pagination li a, 
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination li a {
    background-color: #f8fafc;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.pagination li a:hover {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pagination li.active span {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pagination li.disabled span {
    background-color: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

        
        .card-hover {
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
        
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        .category-item {
            transition: all 0.2s ease;
            padding: 8px 12px;
            border-radius: 6px;
        }
        
        .category-item:hover {
            background-color: #fed7d7;
        }
        
        .user-card {
            background: linear-gradient(135deg, #fef5e7 0%, #fed7d7 100%);
        }
        
        .feature-box {
            transition: all 0.3s ease;
        }
        
        .feature-box:hover {
            transform: scale(1.05);
        }
        
        .product-image {
            transition: transform 0.5s ease;
        }
        
        .product-card:hover .product-image {
            transform: scale(1.1);
        }
        
        .nav-link {
            position: relative;
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: #e53e3e;
            transition: width 0.3s ease;
        }
        
        .nav-link:hover::after {
            width: 100%;
        }
        
        
        .line-clamp-3 {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .tag {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            border-radius: 0.375rem;
            font-size: 0.75rem;
            font-weight: 500;
            margin-right: 0.25rem;
            margin-bottom: 0.25rem;
        }
        .tag-hot {
            background-color: #fee2e2;
            color: #dc2626;
        }
        .tag-promo {
            background-color: #dbeafe;
            color: #1d4ed8;
        }
        .tag-new {
            background-color: #dcfce7;
            color: #166534;
        }

/* 自定义动画效果 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 悬浮工具栏样式 */
.toolbar-btn {
    width:48px;height:48px;
    background:#fff;
    border-radius:50%;
    box-shadow:0 2px 8px rgba(0,0,0,0.12);
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    color:#666;
    cursor:pointer;
    transition:background 0.2s;
    margin-bottom:8px;
}
.toolbar-btn:hover {background:#f44336;color:#fff;}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 图片加载过渡 */
img {
    transition: transform 0.7s ease;
}